mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 19:22:48 +00:00
dhtfile param
This commit is contained in:
1 parent
a3b87ab809
commit
3988b898c4
6 files changed
+21
-26
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user