|
|
@ -212,6 +212,8 @@ namespace transport |
|
|
|
boost::asio::ip::udp::socket& socket = localEndpoint.address ().is_v6 () ? m_SocketV6 : m_SocketV4; |
|
|
|
boost::asio::ip::udp::socket& socket = localEndpoint.address ().is_v6 () ? m_SocketV6 : m_SocketV4; |
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (socket.is_open ()) |
|
|
|
|
|
|
|
socket.close (); |
|
|
|
socket.open (localEndpoint.protocol ()); |
|
|
|
socket.open (localEndpoint.protocol ()); |
|
|
|
if (localEndpoint.address ().is_v6 ()) |
|
|
|
if (localEndpoint.address ().is_v6 ()) |
|
|
|
socket.set_option (boost::asio::ip::v6_only (true)); |
|
|
|
socket.set_option (boost::asio::ip::v6_only (true)); |
|
|
|