LocalIp: filter --localip-default-route-only inside detection code

This commit is contained in:
李通洲
2023-09-26 20:27:33 +08:00
parent 69373906ca
commit 4843dedb4d
4 changed files with 23 additions and 38 deletions
-6
View File
@@ -86,9 +86,6 @@ void ffPrintLocalIp(FFLocalIpOptions* options)
FF_LIST_FOR_EACH(FFLocalIpResult, ip, results)
{
if (options->defaultRouteOnly && !ip->defaultRoute)
continue;
if (flag)
fputs(" - ", stdout);
else
@@ -104,9 +101,6 @@ void ffPrintLocalIp(FFLocalIpOptions* options)
FF_LIST_FOR_EACH(FFLocalIpResult, ip, results)
{
if (options->defaultRouteOnly && !ip->defaultRoute)
continue;
formatKey(options, ip, results.length == 1 ? 0 : index + 1, &key);
if(options->moduleArgs.outputFormat.length == 0)
{