Skip to content

Commit a54a446

Browse files
bnoordhuisrvagg
authored andcommitted
deps: reapply c-ares floating patch
PR-URL: #5090 Reviewed-By: Fedor Indutny <[email protected]>
1 parent 02c1e9e commit a54a446

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
@@ -1025,6 +1025,11 @@ static int get_DNS_AdaptersAddresses(char **outptr)
10251025
}
10261026
else if (namesrvr.sa->sa_family == AF_INET6)
10271027
{
1028+
/* Windows apparently always reports some IPv6 DNS servers that
1029+
* prefixed with fec0:0:0:ffff. These ususally do not point to
1030+
* working DNS servers, so we ignore them. */
1031+
if (strncmp(txtaddr, "fec0:0:0:ffff:", 14) == 0)
1032+
continue;
10281033
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
10291034
sizeof(namesrvr.sa6->sin6_addr)) == 0)
10301035
continue;

0 commit comments

Comments
 (0)