mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
LocalIP: support --localip-name-prefix on Windows
This commit is contained in:
@@ -33,7 +33,10 @@ void ffPrintLocalIp(FFinstance* instance)
|
||||
|
||||
if(instance->config.localIP.key.length == 0)
|
||||
{
|
||||
ffStrbufSetF(&key, FF_LOCALIP_MODULE_NAME " (%*s)", ip->name.length, ip->name.chars);
|
||||
if(ip->name.length)
|
||||
ffStrbufSetF(&key, FF_LOCALIP_MODULE_NAME " (%*s)", ip->name.length, ip->name.chars);
|
||||
else
|
||||
ffStrbufSetS(&key, FF_LOCALIP_MODULE_NAME);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user