|
|
@ -277,6 +277,15 @@ namespace transport |
|
|
|
if (ecode != boost::asio::error::operation_aborted) |
|
|
|
if (ecode != boost::asio::error::operation_aborted) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogError, "SSU2: Receive error: code ", ecode.value(), ": ", ecode.message ()); |
|
|
|
LogPrint (eLogError, "SSU2: Receive error: code ", ecode.value(), ": ", ecode.message ()); |
|
|
|
|
|
|
|
if (m_IsThroughProxy) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
m_UDPAssociateSocket.reset (nullptr); |
|
|
|
|
|
|
|
m_ProxyRelayEndpoint.reset (nullptr); |
|
|
|
|
|
|
|
m_SocketV4.close (); |
|
|
|
|
|
|
|
ConnectToProxy (); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
auto ep = socket.local_endpoint (); |
|
|
|
auto ep = socket.local_endpoint (); |
|
|
|
socket.close (); |
|
|
|
socket.close (); |
|
|
|
OpenSocket (ep); |
|
|
|
OpenSocket (ep); |
|
|
@ -284,6 +293,7 @@ namespace transport |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SSU2Server::HandleReceivedPacket (Packet * packet) |
|
|
|
void SSU2Server::HandleReceivedPacket (Packet * packet) |
|
|
|
{ |
|
|
|
{ |
|
|
|