summary refs log tree commit diff stats
path: root/src/common/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/network.c')
-rw-r--r--src/common/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/network.c b/src/common/network.c
index c3390b31..ca0923e1 100644
--- a/src/common/network.c
+++ b/src/common/network.c
@@ -205,7 +205,7 @@ net_resolve (netstore * ns, char *hostname, int port, char **real_host)
 
 	memset (&hints, 0, sizeof (struct addrinfo));
 	hints.ai_family = PF_UNSPEC; /* support ipv6 and ipv4 */
-	hints.ai_flags = AI_CANONNAME;
+	hints.ai_flags = AI_CANONNAME | AI_ADDRCONFIG;
 	hints.ai_socktype = SOCK_STREAM;
 
 	if (port == 0)