diff --git a/src/detection/localip/localip_windows.c b/src/detection/localip/localip_windows.c index 7d5091699..8f10e76b4 100644 --- a/src/detection/localip/localip_windows.c +++ b/src/detection/localip/localip_windows.c @@ -95,6 +95,9 @@ const char* ffDetectLocalIps(const FFLocalIpOptions* options, FFlist* results) // Iterate through all of the adapters for (IP_ADAPTER_ADDRESSES* adapter = adapter_addresses; adapter; adapter = adapter->Next) { + if (adapter->OperStatus != IfOperStatusUp) + continue; + bool isDefaultRoute = adapter->IfIndex == defaultRouteIfIndex; if ((options->showType & FF_LOCALIP_TYPE_DEFAULT_ROUTE_ONLY_BIT) && !isDefaultRoute) continue;