From df353bc3f94218b4e4d9ccc996470385f54d879d Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 6 Feb 2016 15:49:25 -0500 Subject: [PATCH] forward port typo fix in udp_socket from RC_1_0 --- src/udp_socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udp_socket.cpp b/src/udp_socket.cpp index 330525d19..f7e26a0ea 100644 --- a/src/udp_socket.cpp +++ b/src/udp_socket.cpp @@ -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);