mirror of
https://github.com/akuker/RASCSI.git
synced 2025-08-05 01:27:46 +00:00
Ignore dummy network interfaces when setting up interface list (#1066)
This commit is contained in:
@@ -36,10 +36,12 @@ DeviceFactory::DeviceFactory()
|
||||
|
||||
string network_interfaces;
|
||||
for (const auto& network_interface : GetNetworkInterfaces()) {
|
||||
if (!network_interfaces.empty()) {
|
||||
network_interfaces += ",";
|
||||
if (network_interface.rfind("dummy", 0) == string::npos) {
|
||||
if (!network_interfaces.empty()) {
|
||||
network_interfaces += ",";
|
||||
}
|
||||
network_interfaces += network_interface;
|
||||
}
|
||||
network_interfaces += network_interface;
|
||||
}
|
||||
|
||||
default_params[SCBR]["interface"] = network_interfaces;
|
||||
|
Reference in New Issue
Block a user