mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Remove deprecated feature of separate DHT port.
This commit is contained in:
parent
08e14cdc26
commit
e2748ec3ac
7 changed files with 14 additions and 147 deletions
|
@ -106,8 +106,6 @@ QByteArray prefjson::getPreferences()
|
|||
data["scheduler_days"] = pref.getSchedulerDays();
|
||||
// Bittorrent
|
||||
data["dht"] = pref.isDHTEnabled();
|
||||
data["dhtSameAsBT"] = pref.isDHTPortSameAsBT();
|
||||
data["dht_port"] = pref.getDHTPort();
|
||||
data["pex"] = pref.isPeXEnabled();
|
||||
data["lsd"] = pref.isLSDEnabled();
|
||||
data["encryption"] = pref.getEncryptionSetting();
|
||||
|
@ -270,10 +268,6 @@ void prefjson::setPreferences(const QString& json)
|
|||
// Bittorrent
|
||||
if (m.contains("dht"))
|
||||
pref.setDHTEnabled(m["dht"].toBool());
|
||||
if (m.contains("dhtSameAsBT"))
|
||||
pref.setDHTPortSameAsBT(m["dhtSameAsBT"].toBool());
|
||||
if (m.contains("dht_port"))
|
||||
pref.setDHTPort(m["dht_port"].toInt());
|
||||
if (m.contains("pex"))
|
||||
pref.setPeXEnabled(m["pex"].toBool());
|
||||
qDebug("Pex support: %d", (int)m["pex"].toBool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue