Ignore dummy network interfaces when setting up interface list (#1066)

This commit is contained in:
Uwe Seimet 2023-01-14 19:26:33 +01:00 committed by GitHub
parent ae4b9a70ba
commit 78206ed670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,12 @@ DeviceFactory::DeviceFactory()
string network_interfaces; string network_interfaces;
for (const auto& network_interface : GetNetworkInterfaces()) { for (const auto& network_interface : GetNetworkInterfaces()) {
if (!network_interfaces.empty()) { if (network_interface.rfind("dummy", 0) == string::npos) {
network_interfaces += ","; if (!network_interfaces.empty()) {
network_interfaces += ",";
}
network_interfaces += network_interface;
} }
network_interfaces += network_interface;
} }
default_params[SCBR]["interface"] = network_interfaces; default_params[SCBR]["interface"] = network_interfaces;