mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
Allow users to configure no_connect_privileged_ports
Don't hardcode lt::settings_pack::no_connect_privileged_ports. We support the peer alert for it already, so connections blocked by this setting should be logged.
This commit is contained in:
parent
79bc4f40e8
commit
2eb3ff7f06
6 changed files with 42 additions and 2 deletions
|
@ -309,6 +309,8 @@ void AppController::preferencesAction()
|
|||
data["enable_multi_connections_from_same_ip"] = session->multiConnectionsPerIpEnabled();
|
||||
// Validate HTTPS tracker certificate
|
||||
data["validate_https_tracker_certificate"] = session->validateHTTPSTrackerCertificate();
|
||||
// Disallow connection to peers on privileged ports
|
||||
data["block_peers_on_privileged_ports"] = session->blockPeersOnPrivilegedPorts();
|
||||
// Embedded tracker
|
||||
data["enable_embedded_tracker"] = session->isTrackerEnabled();
|
||||
data["embedded_tracker_port"] = pref->getTrackerPort();
|
||||
|
@ -749,6 +751,9 @@ void AppController::setPreferencesAction()
|
|||
// Validate HTTPS tracker certificate
|
||||
if (hasKey("validate_https_tracker_certificate"))
|
||||
session->setValidateHTTPSTrackerCertificate(it.value().toBool());
|
||||
// Disallow connection to peers on privileged ports
|
||||
if (hasKey("block_peers_on_privileged_ports"))
|
||||
session->setBlockPeersOnPrivilegedPorts(it.value().toBool());
|
||||
// Embedded tracker
|
||||
if (hasKey("embedded_tracker_port"))
|
||||
pref->setTrackerPort(it.value().toInt());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue