| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent af171b7 commit 34d125f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1196,6 +1196,11 @@ static int get_DNS_AdaptersAddresses(char **outptr) | |||
| 1196 | 1196 | } | |
| 1197 | 1197 | else if (namesrvr.sa->sa_family == AF_INET6) | |
| 1198 | 1198 | { | |
| 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; | ||
| 1199 | 1204 | if (memcmp(&namesrvr.sa6->sin6_addr, &ares_in6addr_any, | |
| 1200 | 1205 | sizeof(namesrvr.sa6->sin6_addr)) == 0) | |
| 1201 | 1206 | continue; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments