From: Miroslav Lichvar Date: Wed, 28 Apr 2010 17:06:28 +0000 (+0200) Subject: Don't use AI_ADDRCONFIG hint X-Git-Tag: 1.25-pre1~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73d775c8b4aa9f928e1b0e33a7874dc1f6e3aa6e;p=thirdparty%2Fchrony.git 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. --- diff --git a/nameserv.c b/nameserv.c index de54879a..08c6a3de 100644 --- a/nameserv.c +++ b/nameserv.c @@ -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);