merge IPv6 fix from RC_0_16
This commit is contained in:
parent
99c032a90e
commit
c137e79e34
|
@ -710,7 +710,7 @@ void udp_socket::bind(udp::endpoint const& ep, error_code& ec)
|
|||
}
|
||||
|
||||
#if TORRENT_USE_IPV6
|
||||
if (ep.address().is_v6() || is_any(ep.address()))
|
||||
if (supports_ipv6() && (ep.address().is_v6() || is_any(ep.address())))
|
||||
{
|
||||
udp::endpoint ep6 = ep;
|
||||
if (is_any(ep.address())) ep6.address(address_v6::any());
|
||||
|
|
Loading…
Reference in New Issue