LocalIP: don't print * if defaultRouteOnly is set

This commit is contained in:
李通洲
2024-07-05 20:02:57 +08:00
parent 5f1cb16534
commit 73875de6a1
+1 -1
View File
@@ -105,7 +105,7 @@ void ffPrintLocalIp(FFLocalIpOptions* options)
if(options->moduleArgs.outputFormat.length == 0)
{
ffPrintLogoAndKey(key.chars, 0, &options->moduleArgs, FF_PRINT_TYPE_NO_CUSTOM_KEY);
printIp(ip, true);
printIp(ip, !(options->showType & FF_LOCALIP_TYPE_DEFAULT_ROUTE_ONLY_BIT));
putchar('\n');
}
else