mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Fix unreachable in tr_make_listen_socket_ipv6only (#7825)
This commit is contained in:
committed by
GitHub
parent
54f0417f42
commit
40e1bd660d
@@ -104,8 +104,9 @@ int tr_make_listen_socket_ipv6only(tr_socket_t const sock)
|
|||||||
#if defined(IPV6_V6ONLY)
|
#if defined(IPV6_V6ONLY)
|
||||||
int optval = 1;
|
int optval = 1;
|
||||||
return setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, reinterpret_cast<char const*>(&optval), sizeof(optval));
|
return setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, reinterpret_cast<char const*>(&optval), sizeof(optval));
|
||||||
#endif
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// - TCP Sockets
|
// - TCP Sockets
|
||||||
|
|||||||
Reference in New Issue
Block a user