fix ip filter exemption for trackers. also add a global setting to always exempt trackers

This commit is contained in:
Arvid Norberg
2011-03-04 06:55:39 +00:00
parent cefc97597d
commit 9d0b99480b
6 changed files with 29 additions and 8 deletions

View File

@@ -255,6 +255,8 @@ namespace libtorrent
void http_tracker_connection::on_filter(http_connection& c, std::list<tcp::endpoint>& endpoints)
{
if (tracker_req().apply_ip_filter == false) return;
// remove endpoints that are filtered by the IP filter
for (std::list<tcp::endpoint>::iterator i = endpoints.begin();
i != endpoints.end();)