mirror of https://github.com/c-ares/c-ares.git
(ares_init.c/get_iphlpapi_dns_info() function): when I disable the network by hand or disconnect the network cable in Windows 2000 or Windows XP, my application gets 127.0.0.1 as the only name server. The problem comes from 'GetNetworkParams' function, that returns the empty string "" as the only name server in that case. Moreover, the Windows implementation of inet_addr() returns INADDR_LOOPBACK instead of INADDR_NONE.pull/1/head
parent
1bec3073dc
commit
d3439e3332
2 changed files with 12 additions and 1 deletions
Loading…
Reference in new issue