FEATURE: User can choose to apply transfer limits on LAN too

This commit is contained in:
Christophe Dumez 2010-01-31 15:42:24 +00:00
parent 81d3e64518
commit 51e474c893
4 changed files with 26 additions and 2 deletions

View file

@ -430,6 +430,8 @@ void Bittorrent::configureSession() {
// Outgoing ports
sessionSettings.outgoing_ports = std::make_pair(Preferences::outgoingPortsMin(), Preferences::outgoingPortsMax());
setSessionSettings(sessionSettings);
// Ignore limits on LAN
sessionSettings.ignore_limits_on_local_network = Preferences::ignoreLimitsOnLAN();
// Bittorrent
// * Max connections limit
setMaxConnections(Preferences::getMaxConnecs());