network: Don't show the NULL address in the IP overview
This commit is contained in:
parent
ae5acbe421
commit
763788894c
1 changed files with 2 additions and 0 deletions
|
@ -557,6 +557,8 @@ get_ipv4_config_address_as_string (NMIP4Config *ip4_config, const char *what)
|
||||||
|
|
||||||
if (!inet_ntop (AF_INET, &addr, tmp, sizeof(tmp)))
|
if (!inet_ntop (AF_INET, &addr, tmp, sizeof(tmp)))
|
||||||
goto out;
|
goto out;
|
||||||
|
if (g_strcmp0 (tmp, "0.0.0.0") == 0)
|
||||||
|
goto out;
|
||||||
str = g_strdup (tmp);
|
str = g_strdup (tmp);
|
||||||
out:
|
out:
|
||||||
return str;
|
return str;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue