mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
fix: ensure ipv4 for udp announces. (#4723)
This is an interim fix to unblock 4.0.0. See ticket 4719 for details.
This commit is contained in:
parent
fbb98ada4a
commit
6c99e95463
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ private:
|
|||
*fmt::format_to(std::data(szport), FMT_STRING("{:d}"), port.host()) = '\0';
|
||||
|
||||
auto hints = addrinfo{};
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_family = AF_INET; // https://github.com/transmission/transmission/issues/4719
|
||||
hints.ai_protocol = IPPROTO_UDP;
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
|
||||
|
|
Loading…
Reference in a new issue