Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deps/cares/src/lib/ares_sysconfig_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@

#include "ares_inet_net_pton.h"

#ifndef IF_TYPE_SOFTWARE_LOOPBACK
#define IF_TYPE_SOFTWARE_LOOPBACK 24
#endif

#if defined(USE_WINSOCK)

# define WIN_NS_9X "System\\CurrentControlSet\\Services\\VxD\\MSTCP"
Expand Down Expand Up @@ -368,6 +372,9 @@ static ares_bool_t get_DNS_Windows(char **outptr)
if (ipaaEntry->OperStatus != IfOperStatusUp) {
continue;
}
if (ipaaEntry->IfType == IF_TYPE_SOFTWARE_LOOPBACK) {
continue;
}

/* For each interface, find any associated DNS servers as IPv4 or IPv6
* addresses. For each found address, find the best route to that DNS
Expand Down
Loading