Browse Source

Merge pull request #5230 from Chocobo1/filterTracker

Fix "IP Filtering - Apply to trackers" wasn't being applied
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
fecf8501cb
  1. 2
      src/base/bittorrent/session.cpp
  2. 7
      src/gui/options_imp.cpp

2
src/base/bittorrent/session.cpp

@ -675,6 +675,8 @@ void Session::setSessionSettings() @@ -675,6 +675,8 @@ void Session::setSessionSettings()
sessionSettings.force_proxy = false;
sessionSettings.no_connect_privileged_ports = false;
sessionSettings.seed_choking_algorithm = libt::session_settings::fastest_upload;
sessionSettings.apply_ip_filter_to_trackers = pref->isFilteringTrackerEnabled();
qDebug() << "Set session settings";
m_nativeSession->set_settings(sessionSettings);
}

7
src/gui/options_imp.cpp

@ -545,13 +545,12 @@ void options_imp::saveOptions() @@ -545,13 +545,12 @@ void options_imp::saveOptions()
pref->setGlobalMaxRatio(getMaxRatio());
session->setMaxRatioAction(static_cast<MaxRatioAction>(comboRatioLimitAct->currentIndex()));
// End Bittorrent preferences
// Misc preferences
// * IPFilter
pref->setFilteringEnabled(isFilteringEnabled());
if (isFilteringEnabled()) {
pref->setFilteringTrackerEnabled(checkIpFilterTrackers->isChecked());
pref->setFilter(textFilterPath->text());
}
pref->setFilteringTrackerEnabled(checkIpFilterTrackers->isChecked());
pref->setFilter(textFilterPath->text());
// End IPFilter preferences
// Queueing system
pref->setQueueingSystemEnabled(isQueueingSystemEnabled());

Loading…
Cancel
Save