List inteface links rather than ipv4.
[dhcpcd-ui] / src / dhcpcd-gtk / prefs.c
index e53f49efe370964974c1f6e4efa377df5ee161b6..2bbd16623a25016f765dca2a3843339ba5b3a73c 100644 (file)
@@ -214,7 +214,7 @@ list_interfaces(DHCPCD_CONNECTION *con)
 
        list = NULL;
        for (i = dhcpcd_interfaces(con); i; i = i->next)
 
        list = NULL;
        for (i = dhcpcd_interfaces(con); i; i = i->next)
-               if (strcmp(i->type, "ipv4") == 0)
+               if (strcmp(i->type, "link") == 0)
                        list = g_slist_append(list, UNCONST(i->ifname));
        return list;
 }
                        list = g_slist_append(list, UNCONST(i->ifname));
        return list;
 }