mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
FEATURE: Proxy can be disabled for peer connections
This commit is contained in:
@@ -509,6 +509,14 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Connection/ProxyType"), type);
|
||||
}
|
||||
|
||||
void setProxyPeerConnections(bool enabled) {
|
||||
setValue(QString::fromUtf8("Preferences/Connection/ProxyPeerConnections"), enabled);
|
||||
}
|
||||
|
||||
bool proxyPeerConnections() const {
|
||||
return value(QString::fromUtf8("Preferences/Connection/ProxyPeerConnections"), false).toBool();
|
||||
}
|
||||
|
||||
// Bittorrent options
|
||||
int getMaxConnecs() const {
|
||||
return value(QString::fromUtf8("Preferences/Bittorrent/MaxConnecs"), 500).toInt();
|
||||
|
||||
Reference in New Issue
Block a user