summaryrefslogtreecommitdiff
path: root/deps/cares
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-05-15 21:25:11 +0200
committerFedor Indutny <fedor@indutny.com>2016-02-11 22:23:48 -0500
commit72c5458aee5c4542163f1f3ad01de837e0a8c0d9 (patch)
tree1b9a33df1a94dc1afe0f5fb9ee9335fdb0bb57ed /deps/cares
parentcc192f0eb3017a9851aea802e694588bbb356ecf (diff)
downloadnode-new-72c5458aee5c4542163f1f3ad01de837e0a8c0d9.tar.gz
deps: reapply c-ares floating patch
PR-URL: https://github.com/nodejs/node/pull/5090 Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'deps/cares')
-rw-r--r--deps/cares/src/ares_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/cares/src/ares_init.c b/deps/cares/src/ares_init.c
index 55d9327ebf..d978820f9a 100644
--- a/deps/cares/src/ares_init.c
+++ b/deps/cares/src/ares_init.c
@@ -1030,6 +1030,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;