forward port typo fix in udp_socket from RC_1_0

This commit is contained in:
arvidn 2016-02-06 15:49:25 -05:00
parent 6168850519
commit df353bc3f9
1 changed files with 2 additions and 2 deletions

View File

@ -820,9 +820,9 @@ void udp_socket::bind(udp::endpoint const& ep, error_code& ec)
// this is best-effort. ignore errors
error_code err;
#ifdef TORRENT_WINDOWS
m_ipv4_sock.set_option(exclusive_address_use(true), err);
m_ipv6_sock.set_option(exclusive_address_use(true), err);
#endif
m_ipv4_sock.set_option(boost::asio::socket_base::reuse_address(true), err);
m_ipv6_sock.set_option(boost::asio::socket_base::reuse_address(true), err);
m_ipv6_sock.set_option(boost::asio::ip::v6_only(true), err);
m_ipv6_sock.bind(ep6, ec);