add back support for ip filter files to client_test. add some logging when tracker IPs are filtered

This commit is contained in:
Arvid Norberg
2010-06-06 02:31:20 +00:00
parent 61374075c4
commit 9ddf7f7cfa
3 changed files with 26 additions and 24 deletions

View File

@@ -147,7 +147,12 @@ namespace libtorrent
i != m_endpoints.end();)
{
if (m_ses.m_ip_filter.access(i->address()) == ip_filter::blocked)
{
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING
if (cb) cb->debug_log("*** UDP_TRACKER [ IP blocked by filter: " + print_address(i->address()) + " ]");
#endif
i = m_endpoints.erase(i);
}
else
++i;
}