Skip to content

Commit 3afa5e6

Browse files
committed
deps: reapply c-ares floating patch
1 parent 7934825 commit 3afa5e6

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
@@ -997,6 +997,11 @@ static int get_DNS_AdaptersAddresses(char **outptr)
997997
}
998998
else if (namesrvr.sa->sa_family == AF_INET6)
999999
{
1000+
/* Windows apparently always reports some IPv6 DNS servers that
1001+
* prefixed with fec0:0:0:ffff. These ususally do not point to
1002+
* working DNS servers, so we ignore them. */
1003+
if (strncmp(txtaddr, "fec0:0:0:ffff:", 14) == 0)
1004+
continue;
10001005
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
10011006
sizeof(namesrvr.sa6->sin6_addr)) == 0)
10021007
continue;

0 commit comments

Comments
 (0)