mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 07:22:47 -07:00
Expose SSRF mitigation (#15247)
This commit is contained in:
parent
11a063ea66
commit
e87f8f5b93
6 changed files with 43 additions and 1 deletions
|
@ -335,6 +335,8 @@ void AppController::preferencesAction()
|
|||
data["enable_multi_connections_from_same_ip"] = session->multiConnectionsPerIpEnabled();
|
||||
// Validate HTTPS tracker certificate
|
||||
data["validate_https_tracker_certificate"] = session->validateHTTPSTrackerCertificate();
|
||||
// SSRF mitigation
|
||||
data["ssrf_mitigation"] = session->isSSRFMitigationEnabled();
|
||||
// Disallow connection to peers on privileged ports
|
||||
data["block_peers_on_privileged_ports"] = session->blockPeersOnPrivilegedPorts();
|
||||
// Embedded tracker
|
||||
|
@ -819,6 +821,9 @@ void AppController::setPreferencesAction()
|
|||
// Validate HTTPS tracker certificate
|
||||
if (hasKey("validate_https_tracker_certificate"))
|
||||
session->setValidateHTTPSTrackerCertificate(it.value().toBool());
|
||||
// SSRF mitigation
|
||||
if (hasKey("ssrf_mitigation"))
|
||||
session->setSSRFMitigationEnabled(it.value().toBool());
|
||||
// Disallow connection to peers on privileged ports
|
||||
if (hasKey("block_peers_on_privileged_ports"))
|
||||
session->setBlockPeersOnPrivilegedPorts(it.value().toBool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue