We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e4f8d4 commit 768373cCopy full SHA for 768373c
deps/cares/src/ares_init.c
@@ -1272,6 +1272,11 @@ static int get_DNS_AdaptersAddresses(char **outptr)
1272
}
1273
else if (namesrvr.sa->sa_family == AF_INET6)
1274
{
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;
1280
if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any,
1281
sizeof(namesrvr.sa6->sin6_addr)) == 0)
1282
continue;
0 commit comments