Don't use AI_ADDRCONFIG hint

We want to get IPv4/6 addresses even if the local system currently has
no IPv4/6 address configured.
This commit is contained in:
Miroslav Lichvar 2010-04-28 19:06:28 +02:00
parent 97f3e9404a
commit 73d775c8b4

View file

@ -56,9 +56,6 @@ DNS_Name2IPAddress(const char *name, IPAddr *addr)
memset(&hints, 0, sizeof (hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
#ifdef AI_ADDRCONFIG
hints.ai_flags = AI_ADDRCONFIG;
#endif
result = getaddrinfo(name, NULL, &hints, &res);