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

@@ -246,6 +246,13 @@ namespace libtorrent
++i;
}
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
boost::shared_ptr<request_callback> cb = requester();
if (cb)
{
cb->debug_log("*** TRACKER_FILTER");
}
#endif
if (endpoints.empty())
fail(error_code(errors::banned_by_ip_filter));
}