Merge pull request #634 from youknowone/ipv6

Retrieve reachable addresses only.
This commit is contained in:
TingPing 2013-06-04 05:04:48 -07:00
commit d16aedf6c4
1 changed files with 1 additions and 1 deletions

View File

@ -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)