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
1 changed files with 1 additions and 1 deletions

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;