optional 'keys' param for torrents tunnel

This commit is contained in:
orignal
2026-08-02 15:10:56 -04:00
parent 3bcbab75e4
commit 21181b2deb
+1 -1
View File
@@ -953,9 +953,9 @@ namespace client
{
// mandatory params
std::string keys = section.second.get<std::string> (TORRENTS_TUNNEL_KEYS);
std::string torrentsDir = section.second.get<std::string> (TORRENTS_TUNNEL_TORRENTS_DIR);
// optional params
std::string keys = section.second.get<std::string> (TORRENTS_TUNNEL_KEYS, "transient");
std::string trackers = section.second.get<std::string> (TORRENTS_TUNNEL_TRACKERS, "");
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;