Browse Source

Merge pull request #3941 from jconnop/announceIP

Always update native session's announce_ip setting
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
063eb7e9ab
  1. 4
      src/base/bittorrent/session.cpp

4
src/base/bittorrent/session.cpp

@ -365,9 +365,7 @@ void Session::setSessionSettings() @@ -365,9 +365,7 @@ void Session::setSessionSettings()
// Include overhead in transfer limits
sessionSettings.rate_limit_ip_overhead = pref->includeOverheadInLimits();
// IP address to announce to trackers
QString announce_ip = pref->getNetworkAddress();
if (!announce_ip.isEmpty())
sessionSettings.announce_ip = Utils::String::toStdString(announce_ip);
sessionSettings.announce_ip = Utils::String::toStdString(pref->getNetworkAddress());
// Super seeding
sessionSettings.strict_super_seeding = pref->isSuperSeedingEnabled();
// * Max Half-open connections

Loading…
Cancel
Save