mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 00:03:58 +01:00
LocalIP / NetIO: make defaultRouteOnly defaults to true
This commit is contained in:
@@ -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, !options->defaultRouteOnly);
|
||||
printIp(ip, true);
|
||||
putchar('\n');
|
||||
}
|
||||
else
|
||||
@@ -370,7 +370,7 @@ void ffInitLocalIpOptions(FFLocalIpOptions* options)
|
||||
|
||||
options->showType = FF_LOCALIP_TYPE_IPV4_BIT;
|
||||
ffStrbufInit(&options->namePrefix);
|
||||
options->defaultRouteOnly = false;
|
||||
options->defaultRouteOnly = true;
|
||||
}
|
||||
|
||||
void ffDestroyLocalIpOptions(FFLocalIpOptions* options)
|
||||
|
||||
@@ -230,7 +230,7 @@ void ffInitNetIOOptions(FFNetIOOptions* options)
|
||||
ffOptionInitModuleArg(&options->moduleArgs);
|
||||
|
||||
ffStrbufInit(&options->namePrefix);
|
||||
options->defaultRouteOnly = false;
|
||||
options->defaultRouteOnly = true;
|
||||
}
|
||||
|
||||
void ffDestroyNetIOOptions(FFNetIOOptions* options)
|
||||
|
||||
Reference in New Issue
Block a user