We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8019e commit 88a0926Copy full SHA for 88a0926
1 file changed
deps/cares/src/lib/ares_sysconfig_win.c
@@ -54,6 +54,10 @@
54
55
#include "ares_inet_net_pton.h"
56
57
+#ifndef IF_TYPE_SOFTWARE_LOOPBACK
58
+#define IF_TYPE_SOFTWARE_LOOPBACK 24
59
+#endif
60
+
61
#if defined(USE_WINSOCK)
62
63
# define WIN_NS_9X "System\\CurrentControlSet\\Services\\VxD\\MSTCP"
@@ -368,6 +372,9 @@ static ares_bool_t get_DNS_Windows(char **outptr)
368
372
if (ipaaEntry->OperStatus != IfOperStatusUp) {
369
373
continue;
370
374
}
375
+ if (ipaaEntry->IfType == IF_TYPE_SOFTWARE_LOOPBACK) {
376
+ continue;
377
+ }
371
378
379
/* For each interface, find any associated DNS servers as IPv4 or IPv6
380
* addresses. For each found address, find the best route to that DNS
0 commit comments