mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +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:
parent
7132dfda94
commit
769629499e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue