Skip to content

Commit 72c5458

Browse files
bnoordhuisindutny
authored andcommitted
deps: reapply c-ares floating patch
PR-URL: nodejs#5090 Reviewed-By: Fedor Indutny <[email protected]>
1 parent cc192f0 commit 72c5458

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
@@ -1030,6 +1030,11 @@ static int get_DNS_AdaptersAddresses(char **outptr)
10301030
}
10311031
else if (namesrvr.sa->sa_family == AF_INET6)
10321032
{
1033+
/* Windows apparently always reports some IPv6 DNS servers that
1034+
* prefixed with fec0:0:0:ffff. These ususally do not point to
1035+
* working DNS servers, so we ignore them. */
1036+
if (strncmp(txtaddr, "fec0:0:0:ffff:", 14) == 0)
1037+
continue;
10331038
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
10341039
sizeof(namesrvr.sa6->sin6_addr)) == 0)
10351040
continue;

0 commit comments

Comments
 (0)