]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't use AI_ADDRCONFIG hint
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 28 Apr 2010 17:06:28 +0000 (19:06 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 28 Apr 2010 17:15:35 +0000 (19:15 +0200)
We want to get IPv4/6 addresses even if the local system currently has
no IPv4/6 address configured.

nameserv.c

index de54879ad297a33bef3161ea746db97e911529a1..08c6a3de4820199f5678b6abb34bf9268226b044 100644 (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);