From f456d04e389e254ddf683a2d0e85c49cc1c3402d Mon Sep 17 00:00:00 2001 From: Haw Loeung Date: Sat, 16 Aug 2014 10:06:15 +1000 Subject: [PATCH] Revert "Fixed to consider IPv6 nameservers and to also handle case where only IPv6 nameservers are specified." This reverts commit f45352dcb7e92471edd0e69de950c30e78d00424. --- dns.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dns.c b/dns.c index 21ab60a..32b83c2 100644 --- a/dns.c +++ b/dns.c @@ -509,16 +509,11 @@ int dns_waitfd6(void) void dns_open(void) { - int option,i,nscount; + int option,i; if (!dns) return; MY_RES_INIT(); -#ifdef ENABLE_IPV6 - nscount = myres.nscount + myres._u._ext.nscount6; -#else - nscount = myres.nscount; -#endif - if (!nscount) { + if (!myres.nscount) { fprintf(stderr,"No nameservers defined.\n"); exit(-1); } -- 2.47.2