1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Fix incorrect "max outgoing port" setting

PR #17252.
This commit is contained in:
Li Z 2022-06-23 11:49:45 +08:00 committed by GitHub
parent 3023cff2b5
commit 86b6bcc1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1354,7 +1354,7 @@ void Session::loadLTSettings(lt::settings_pack &settingsPack)
// Outgoing ports // Outgoing ports
settingsPack.set_int(lt::settings_pack::outgoing_port, outgoingPortsMin()); settingsPack.set_int(lt::settings_pack::outgoing_port, outgoingPortsMin());
settingsPack.set_int(lt::settings_pack::num_outgoing_ports, outgoingPortsMax() - outgoingPortsMin() + 1); settingsPack.set_int(lt::settings_pack::num_outgoing_ports, (outgoingPortsMax() - outgoingPortsMin()));
// UPnP lease duration // UPnP lease duration
settingsPack.set_int(lt::settings_pack::upnp_lease_duration, UPnPLeaseDuration()); settingsPack.set_int(lt::settings_pack::upnp_lease_duration, UPnPLeaseDuration());
// Type of service // Type of service