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:
parent
97f3e9404a
commit
73d775c8b4
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue