Browse Source

deps: c-ares float, win ipv6 bad fec0 prefix

Was 72c5458aee:

  PR-URL: https://github.com/nodejs/node/pull/5090
  Reviewed-By: Fedor Indutny <fedor@indutny.com>

Reimplemented for c-ares 1.13.0

PR-URL: https://github.com/nodejs/node/pull/15378
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
v9.x-staging
Rod Vagg 12 years ago
committed by Ruben Bridgewater
parent
commit
34d125f16c
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 5
      deps/cares/src/ares_init.c

5
deps/cares/src/ares_init.c

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

Loading…
Cancel
Save