chiark / gitweb /
rtnl: when querying local addresses and gateways, take address family into account
[elogind.git] / src / machine / machine-dbus.c
index f12ce98..a2fc56f 100644 (file)
@@ -207,7 +207,7 @@ int bus_machine_method_get_addresses(sd_bus *bus, sd_bus_message *message, void
                 if (r < 0)
                         _exit(EXIT_FAILURE);
 
                 if (r < 0)
                         _exit(EXIT_FAILURE);
 
-                n = local_addresses(NULL, 0, &addresses);
+                n = local_addresses(NULL, 0, AF_UNSPEC, &addresses);
                 if (n < 0)
                         _exit(EXIT_FAILURE);
 
                 if (n < 0)
                         _exit(EXIT_FAILURE);