Skip to content

Commit 768373c

Browse files
rvaggBridgeAR
authored andcommitted
deps: c-ares float, win ipv6 bad fec0 prefix
Was 72c5458: PR-URL: nodejs#5090 Reviewed-By: Fedor Indutny <[email protected]> Reimplemented for c-ares 1.13.0 PR-URL: nodejs#15378 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> PR-URL: nodejs#19939 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 7e4f8d4 commit 768373c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deps/cares/src/ares_init.c

+5
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,11 @@ static int get_DNS_AdaptersAddresses(char **outptr)
12721272
}
12731273
else if (namesrvr.sa->sa_family == AF_INET6)
12741274
{
1275+
/* Windows apparently always reports some IPv6 DNS servers that
1276+
* prefixed with fec0:0:0:ffff. These ususally do not point to
1277+
* working DNS servers, so we ignore them. */
1278+
if (strncmp(addresses[addressesIndex].text, "fec0:0:0:ffff:", 14) == 0)
1279+
continue;
12751280
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
12761281
sizeof(namesrvr.sa6->sin6_addr)) == 0)
12771282
continue;

0 commit comments

Comments
 (0)