mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Merge pull request #3941 from jconnop/announceIP
Always update native session's announce_ip setting
This commit is contained in:
commit
063eb7e9ab
1 changed files with 1 additions and 3 deletions
|
@ -365,9 +365,7 @@ void Session::setSessionSettings()
|
||||||
// Include overhead in transfer limits
|
// Include overhead in transfer limits
|
||||||
sessionSettings.rate_limit_ip_overhead = pref->includeOverheadInLimits();
|
sessionSettings.rate_limit_ip_overhead = pref->includeOverheadInLimits();
|
||||||
// IP address to announce to trackers
|
// IP address to announce to trackers
|
||||||
QString announce_ip = pref->getNetworkAddress();
|
sessionSettings.announce_ip = Utils::String::toStdString(pref->getNetworkAddress());
|
||||||
if (!announce_ip.isEmpty())
|
|
||||||
sessionSettings.announce_ip = Utils::String::toStdString(announce_ip);
|
|
||||||
// Super seeding
|
// Super seeding
|
||||||
sessionSettings.strict_super_seeding = pref->isSuperSeedingEnabled();
|
sessionSettings.strict_super_seeding = pref->isSuperSeedingEnabled();
|
||||||
// * Max Half-open connections
|
// * Max Half-open connections
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue