From 5ea62910bac755756c7d78ef38a3f1b5b78b715c Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 7 Mar 2011 01:20:23 +0000 Subject: [PATCH] fixed inverse logic for ip filter exemption --- src/session_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 196e7feb2..f0462aed0 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -2182,7 +2182,7 @@ namespace aux { // this filter is ignored if a single torrent // is set to ignore the filter, since this peer might be // for that torrent - if (m_non_filtered_torrents > 0 + if (m_non_filtered_torrents == 0 && (m_ip_filter.access(endp.address()) & ip_filter::blocked)) { #if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)