mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Protect callers of MultiSocket::remote_endpoint from exceptions
This commit is contained in:
@@ -115,8 +115,15 @@ protected:
|
||||
return IP::Endpoint();
|
||||
}
|
||||
|
||||
return IPAddressConversion::from_asio (
|
||||
m_next_layer.remote_endpoint());
|
||||
try
|
||||
{
|
||||
return IPAddressConversion::from_asio (
|
||||
m_next_layer.remote_endpoint());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return IP::Endpoint ();
|
||||
}
|
||||
}
|
||||
|
||||
ProxyInfo getProxyInfo ()
|
||||
|
||||
Reference in New Issue
Block a user