mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Show "No Address" instead of "::" when there is no address
This commit is contained in:
parent
2039d6232e
commit
59f79105bd
@ -243,9 +243,7 @@ void print_v6addrs(struct text_object *obj, char *p, int p_max_size)
|
||||
|
||||
if(p_max_size == 0) return;
|
||||
if( ! ns->v6addrs) {
|
||||
strncpy(p, "::", p_max_size);
|
||||
if(ns->v6show_nm) strncat(p, "/128", p_max_size);
|
||||
if(ns->v6show_sc) strncat(p, "(/)", p_max_size);
|
||||
snprintf(p, p_max_size, "No Address");
|
||||
return;
|
||||
}
|
||||
*p=0;
|
||||
|
Loading…
Reference in New Issue
Block a user