[gupnp] Linux-CM: Do not filter out global scope v6



commit a585bdffc2581c8d499b8b9890322082a74f2960
Author: Jens Georg <mail jensge org>
Date:   Fri Jul 15 01:00:17 2022 +0200

    Linux-CM: Do not filter out global scope v6

 libgupnp/gupnp-linux-context-manager.c | 11 +++--------
 1 file 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);
                         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]