Fix incorrect "max outgoing port" setting

PR #17252.
This commit is contained in:
Vladimir Golovnev 2022-07-01 11:02:53 +03:00 committed by GitHub
parent 3f142360ed
commit 1130bf300a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1335,7 +1335,7 @@ void Session::loadLTSettings(lt::settings_pack &settingsPack)
// Outgoing ports
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
settingsPack.set_int(lt::settings_pack::upnp_lease_duration, UPnPLeaseDuration());
// Type of service