Skip to content

Commit 34d125f

Browse files
rvaggBridgeAR
authored andcommitted
deps: c-ares float, win ipv6 bad fec0 prefix
Was 72c5458: PR-URL: #5090 Reviewed-By: Fedor Indutny <[email protected]> Reimplemented for c-ares 1.13.0 PR-URL: #15378 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent af171b7 commit 34d125f

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
@@ -1196,6 +1196,11 @@ static int get_DNS_AdaptersAddresses(char **outptr)
11961196
}
11971197
else if (namesrvr.sa->sa_family == AF_INET6)
11981198
{
1199+
/* Windows apparently always reports some IPv6 DNS servers that
1200+
* prefixed with fec0:0:0:ffff. These ususally do not point to
1201+
* working DNS servers, so we ignore them. */
1202+
if (strncmp(addresses[addressesIndex].text, "fec0:0:0:ffff:", 14) == 0)
1203+
continue;
11991204
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
12001205
sizeof(namesrvr.sa6->sin6_addr)) == 0)
12011206
continue;

0 commit comments

Comments
 (0)