mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Add libtorrent's DHT bootstrap node to our bootstrap list.
This commit is contained in:
parent
660b8cdb7e
commit
3081a8bb3f
1 changed files with 2 additions and 1 deletions
|
@ -1086,7 +1086,7 @@ void Session::configure(libtorrent::settings_pack &settingsPack)
|
|||
|
||||
settingsPack.set_bool(libt::settings_pack::enable_dht, isDHTEnabled());
|
||||
if (isDHTEnabled())
|
||||
settingsPack.set_str(libt::settings_pack::dht_bootstrap_nodes, "router.bittorrent.com:6881,router.utorrent.com:6881,dht.transmissionbt.com:6881,dht.aelitis.com:6881");
|
||||
settingsPack.set_str(libt::settings_pack::dht_bootstrap_nodes, "dht.libtorrent.org:25401,router.bittorrent.com:6881,router.utorrent.com:6881,dht.transmissionbt.com:6881,dht.aelitis.com:6881");
|
||||
settingsPack.set_bool(libt::settings_pack::enable_lsd, isLSDEnabled());
|
||||
}
|
||||
|
||||
|
@ -1228,6 +1228,7 @@ void Session::configure(libtorrent::session_settings &sessionSettings)
|
|||
|
||||
if (isDHTEnabled()) {
|
||||
// Add first the routers and then start DHT.
|
||||
m_nativeSession->add_dht_router(std::make_pair(std::string("dht.libtorrent.org"), 25401));
|
||||
m_nativeSession->add_dht_router(std::make_pair(std::string("router.bittorrent.com"), 6881));
|
||||
m_nativeSession->add_dht_router(std::make_pair(std::string("router.utorrent.com"), 6881));
|
||||
m_nativeSession->add_dht_router(std::make_pair(std::string("dht.transmissionbt.com"), 6881));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue