diff options
author | Jens Georg <mail@jensge.org> | 2022-07-15 01:00:17 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2022-07-15 01:00:17 +0200 |
commit | a585bdffc2581c8d499b8b9890322082a74f2960 (patch) | |
tree | 9bcd8463f64fb6b4256007db5b76474e98df7560 /libgupnp | |
parent | c2d34c14228b2095a1ebc84b32dd8c13ae8bc131 (diff) | |
download | gupnp-a585bdffc2581c8d499b8b9890322082a74f2960.tar.gz |
Linux-CM: Do not filter out global scope v6
Diffstat (limited to 'libgupnp')
-rw-r--r-- | libgupnp/gupnp-linux-context-manager.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libgupnp/gupnp-linux-context-manager.c b/libgupnp/gupnp-linux-context-manager.c index 5d95a58..2a76d09 100644 --- a/libgupnp/gupnp-linux-context-manager.c +++ b/libgupnp/gupnp-linux-context-manager.c @@ -448,14 +448,9 @@ extract_info (struct nlmsghdr *header, *address = NULL; addr = g_inet_address_new_from_bytes (RTA_DATA (rt_attr), family); - if (family == AF_INET) { - *address = g_inet_address_to_string (addr); - } else { - if (g_inet_address_get_is_link_local (addr) || - g_inet_address_get_is_loopback (addr) || - g_inet_address_get_is_site_local (addr)) { - *address = g_inet_address_to_string (addr); - } + if (family == AF_INET || family == AF_INET6) { + *address = + g_inet_address_to_string (addr); } g_object_unref (addr); } |