From f0bd176d6d5523626efb3005cf41f11663bde280 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 15 May 2013 21:25:11 +0200 Subject: [PATCH] deps: reapply c-ares floating patch PR-URL: https://github.com/nodejs/node/pull/5090 Reviewed-By: Fedor Indutny --- deps/cares/src/ares_init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deps/cares/src/ares_init.c b/deps/cares/src/ares_init.c index 4607944879..c872a0e189 100644 --- a/deps/cares/src/ares_init.c +++ b/deps/cares/src/ares_init.c @@ -1025,6 +1025,11 @@ static int get_DNS_AdaptersAddresses(char **outptr) } else if (namesrvr.sa->sa_family == AF_INET6) { + /* Windows apparently always reports some IPv6 DNS servers that + * prefixed with fec0:0:0:ffff. These ususally do not point to + * working DNS servers, so we ignore them. */ + if (strncmp(txtaddr, "fec0:0:0:ffff:", 14) == 0) + continue; if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any, sizeof(namesrvr.sa6->sin6_addr)) == 0) continue;