mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-25 20:33:35 +00:00
Ignore dummy network interfaces when setting up interface list (#1066)
This commit is contained in:
parent
ae4b9a70ba
commit
78206ed670
@ -36,11 +36,13 @@ DeviceFactory::DeviceFactory()
|
||||
|
||||
string network_interfaces;
|
||||
for (const auto& network_interface : GetNetworkInterfaces()) {
|
||||
if (network_interface.rfind("dummy", 0) == string::npos) {
|
||||
if (!network_interfaces.empty()) {
|
||||
network_interfaces += ",";
|
||||
}
|
||||
network_interfaces += network_interface;
|
||||
}
|
||||
}
|
||||
|
||||
default_params[SCBR]["interface"] = network_interfaces;
|
||||
default_params[SCBR]["inet"] = DEFAULT_IP;
|
||||
|
Loading…
Reference in New Issue
Block a user