Protect callers of MultiSocket::remote_endpoint from exceptions

This commit is contained in:
Nik Bougalis
2014-03-12 13:50:43 -07:00
parent c517d261bb
commit 4e26108a06

View File

@@ -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 ()