From 12072e2b69de2aa4d522e3512f980021475b97f0 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 4 Nov 2015 17:15:37 +0200 Subject: [PATCH] Always apply filter for manually banned IPs. Related #3988. --- src/core/bittorrent/session.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/bittorrent/session.cpp b/src/core/bittorrent/session.cpp index af4b9e916..b093102a2 100644 --- a/src/core/bittorrent/session.cpp +++ b/src/core/bittorrent/session.cpp @@ -635,11 +635,14 @@ void Session::configure() setGlobalMaxRatio(pref->getGlobalMaxRatio()); // Ip Filter - FilterParserThread::processFilterList(m_nativeSession, pref->bannedIPs()); if (pref->isFilteringEnabled()) enableIPFilter(pref->getFilter()); else disableIPFilter(); + // Add the banned IPs after the possibly disabled IPFilter + // which creates an empty filter and overrides all previously + // applied bans. + FilterParserThread::processFilterList(m_nativeSession, pref->bannedIPs()); // * Proxy settings libt::proxy_settings proxySettings;