From 87cb10c5580bc13ebda576f7d4bd0201f6a6ee40 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 12 Feb 2020 15:27:36 +0100 Subject: [PATCH] sculpt_manager: accept uplink from "local" network Be less rigid when checking for available network to support setups where the uplink or depot repositories are provided by another source than "wired" or "wifi" NIC services, e.g., a virtual machine with pass-through network device. --- repos/gems/src/app/sculpt_manager/model/nic_target.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repos/gems/src/app/sculpt_manager/model/nic_target.h b/repos/gems/src/app/sculpt_manager/model/nic_target.h index cf00042476..0ecd282262 100644 --- a/repos/gems/src/app/sculpt_manager/model/nic_target.h +++ b/repos/gems/src/app/sculpt_manager/model/nic_target.h @@ -74,7 +74,9 @@ struct Sculpt::Nic_target : Noncopyable bool nic_router_needed() const { return type() != OFF; } - bool ready() const { return type() == WIRED || type() == WIFI; } + bool ready() const { return type() == WIRED || + type() == WIFI || + type() == LOCAL; } }; #endif /* _MODEL__NIC_TARGET_H_ */