summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-06-04 05:04:48 -0700
committerTingPing <tngpng@gmail.com>2013-06-04 05:04:48 -0700
commitd16aedf6c45f5701e05208e4543eb4b3e321f666 (patch)
tree5a9688d707977d71e455e3b0794172b73866c26f /src
parent42e3587fd51b10e987adfcd289ad8ea4b3f74009 (diff)
parentd3a27947fe8acdf60f4ccb0fbdf99441b079435c (diff)
Merge pull request #634 from youknowone/ipv6
Retrieve reachable addresses only.
Diffstat (limited to 'src')
-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)