The IPv6 check could always fail because we did not specify a port when

trying to set up the UDP socket (was reproducible here on 10.6 at least)
This commit is contained in:
Eric Petit 2009-12-06 16:21:29 +00:00
parent 7132dfda94
commit 769629499e
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ get_name_source_address(int af, const char *name,
hints.ai_family = af;
hints.ai_socktype = SOCK_DGRAM;
rc = getaddrinfo(name, NULL, &hints, &info);
rc = getaddrinfo(name, "80", &hints, &info);
if(rc != 0) {
errno = ENOENT;
return -1;