dhtfile param

This commit is contained in:
orignal committed 2026-10-15 18:58:35 -04:00
1 parent a3b87ab809
commit 3988b898c4
6 files changed
+21 -26

No files matched your search

+2 -1
View File
@@ -1048,6 +1048,7 @@ namespace client
i2p::data::SigningKeyType sigType = section.second.get (TORRENTS_TUNNEL_SIGNATURE_TYPE, i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519);
if (sigType > i2p::data::SIGNING_KEY_TYPE_REDDSA_SHA512_ED25519) sigType = i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519;
bool dht = section.second.get<bool> (TORRENTS_TUNNEL_DHT, true);
std::string dhtFileName = section.second.get<std::string> (TORRENTS_TUNNEL_DHT_FILE, "");
bool web = section.second.get<bool> (TORRENTS_TUNNEL_WEB, true);
// I2CP
@@ -1080,7 +1081,7 @@ namespace client
localDestination->SetPublic (true);
}
auto torrentsTunnel = std::make_shared<i2p::torrents::TorrentsTunnel> (name,
localDestination, torrentsDir, trackers, dht, web);
localDestination, torrentsDir, trackers, dht, dhtFileName, web);
auto [iit, inserted] = m_TorrentsTunnels.emplace (localDestination->GetIdentHash (), torrentsTunnel);
if (inserted)
{