Don't bother setting 127.0.0.1 as nameserver
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Sep 2010 04:14:39 +0000 (13:14 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Sep 2010 04:14:39 +0000 (13:14 +0900)
tools/resolv-test.c
tools/web-test.c

index 05c3a56..d6919e9 100644 (file)
@@ -139,8 +139,7 @@ int main(int argc, char *argv[])
 
                for (i = 2; i < argc; i++)
                        g_resolv_add_nameserver(resolv, argv[i], 53, 0);
-       } else
-               g_resolv_add_nameserver(resolv, "127.0.0.1", 53, 0);
+       }
 
        timer = g_timer_new();
 
index 1e211d5..253948f 100644 (file)
@@ -109,8 +109,7 @@ int main(int argc, char *argv[])
        if (option_nameserver != NULL) {
                g_web_add_nameserver(web, option_nameserver);
                g_free(option_nameserver);
-       } else
-               g_web_add_nameserver(web, "127.0.0.1");
+       }
 
        timer = g_timer_new();