1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

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

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;