Fix race condition where there was a chance to allow all ips between reparsings of the ip filter.

This commit is contained in:
sledgehammer999
2017-03-07 01:34:55 +02:00
parent 14513cd81f
commit 431658bee6
4 changed files with 59 additions and 49 deletions

View File

@@ -57,6 +57,7 @@ namespace libtorrent
struct torrent_handle;
class entry;
struct add_torrent_params;
struct ip_filter;
struct pe_settings;
#if LIBTORRENT_VERSION_NUM < 10100
struct session_settings;
@@ -449,7 +450,7 @@ namespace BitTorrent
void adjustLimits(libtorrent::settings_pack &settingsPack);
#endif
void adjustLimits();
void processBannedIPs();
void processBannedIPs(libtorrent::ip_filter &filter);
const QStringList getListeningIPs();
void configureListeningInterface();
void changeSpeedLimitMode_impl(bool alternative);