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:
parent
7132dfda94
commit
769629499e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue