mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Always apply filter for manually banned IPs. Related #3988.
This commit is contained in:
@@ -635,11 +635,14 @@ void Session::configure()
|
|||||||
setGlobalMaxRatio(pref->getGlobalMaxRatio());
|
setGlobalMaxRatio(pref->getGlobalMaxRatio());
|
||||||
|
|
||||||
// Ip Filter
|
// Ip Filter
|
||||||
FilterParserThread::processFilterList(m_nativeSession, pref->bannedIPs());
|
|
||||||
if (pref->isFilteringEnabled())
|
if (pref->isFilteringEnabled())
|
||||||
enableIPFilter(pref->getFilter());
|
enableIPFilter(pref->getFilter());
|
||||||
else
|
else
|
||||||
disableIPFilter();
|
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
|
// * Proxy settings
|
||||||
libt::proxy_settings proxySettings;
|
libt::proxy_settings proxySettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user