mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Expose 'DHT bootstrap nodes' setting
This allows user to select DHT bootstrap nodes. Or even use their own bootstrap nodes. PR #19594.
This commit is contained in:
@@ -420,6 +420,8 @@ void AppController::preferencesAction()
|
||||
data[u"peer_turnover_interval"_s] = session->peerTurnoverInterval();
|
||||
// Maximum outstanding requests to a single peer
|
||||
data[u"request_queue_size"_s] = session->requestQueueSize();
|
||||
// DHT bootstrap nodes
|
||||
data[u"dht_bootstrap_nodes"_s] = session->getDHTBootstrapNodes();
|
||||
|
||||
setResult(data);
|
||||
}
|
||||
@@ -1018,6 +1020,9 @@ void AppController::setPreferencesAction()
|
||||
// Maximum outstanding requests to a single peer
|
||||
if (hasKey(u"request_queue_size"_s))
|
||||
session->setRequestQueueSize(it.value().toInt());
|
||||
// DHT bootstrap nodes
|
||||
if (hasKey(u"dht_bootstrap_nodes"_s))
|
||||
session->setDHTBootstrapNodes(it.value().toString());
|
||||
|
||||
// Save preferences
|
||||
pref->apply();
|
||||
|
||||
Reference in New Issue
Block a user