fixed bug reported by Marcos Pinto where an exception was not cought properly
This commit is contained in:
@@ -601,7 +601,9 @@ namespace detail
|
|||||||
for (session_impl::connection_map::iterator i
|
for (session_impl::connection_map::iterator i
|
||||||
= m_connections.begin(); i != m_connections.end();)
|
= m_connections.begin(); i != m_connections.end();)
|
||||||
{
|
{
|
||||||
tcp::endpoint sender = i->first->remote_endpoint();
|
tcp::endpoint sender;
|
||||||
|
try { sender = i->first->remote_endpoint(); }
|
||||||
|
catch (std::exception&) { sender = i->second->remote(); }
|
||||||
if (m_ip_filter.access(sender.address()) & ip_filter::blocked)
|
if (m_ip_filter.access(sender.address()) & ip_filter::blocked)
|
||||||
{
|
{
|
||||||
#if defined(TORRENT_VERBOSE_LOGGING)
|
#if defined(TORRENT_VERBOSE_LOGGING)
|
||||||
|
Reference in New Issue
Block a user