From 78206ed67019b84e5a6423d0395cd807b169fa24 Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Sat, 14 Jan 2023 19:26:33 +0100 Subject: [PATCH] Ignore dummy network interfaces when setting up interface list (#1066) --- cpp/devices/device_factory.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cpp/devices/device_factory.cpp b/cpp/devices/device_factory.cpp index 85e978ed..92449ac5 100644 --- a/cpp/devices/device_factory.cpp +++ b/cpp/devices/device_factory.cpp @@ -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;