mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
- Peer Exchange can be disabled from preferences
This commit is contained in:
@@ -348,6 +348,11 @@ public:
|
||||
return settings.value(QString::fromUtf8("Preferences/Bittorrent/DHT"), true).toBool();
|
||||
}
|
||||
|
||||
static bool isPeXEnabled() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Bittorrent/PeX"), true).toBool();
|
||||
}
|
||||
|
||||
static void setDHTEnabled(bool enabled) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/Bittorrent/DHT"), enabled);
|
||||
|
||||
Reference in New Issue
Block a user