List inteface links rather than ipv4.
authorRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 16:43:58 +0000 (16:43 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 16:43:58 +0000 (16:43 +0000)
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)
-               if (strcmp(i->type, "ipv4") == 0)
+               if (strcmp(i->type, "link") == 0)
                        list = g_slist_append(list, UNCONST(i->ifname));
        return list;
 }