mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06: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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user