mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07: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:
parent
633167a6da
commit
dcba9eda00
8 changed files with 49 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue