Browse Source

Fix incorrect "max outgoing port" setting

PR #17252.
adaptive-webui-19844
Li Z 2 years ago committed by GitHub
parent
commit
86b6bcc1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -1354,7 +1354,7 @@ void Session::loadLTSettings(lt::settings_pack &settingsPack) @@ -1354,7 +1354,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

Loading…
Cancel
Save