1
0
Fork 0
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:
Charles Kerr 2023-02-05 23:31:10 -06:00 committed by GitHub
parent fbb98ada4a
commit 6c99e95463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;