mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:45:07 -05:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user