Browse Source

two tunnels for shared local destination

pull/1555/head
orignal 4 years ago
parent
commit
949fc47f31
  1. 9
      libi2pd_client/ClientContext.cpp

9
libi2pd_client/ClientContext.cpp

@ -401,7 +401,14 @@ namespace client
void ClientContext::CreateNewSharedLocalDestination () void ClientContext::CreateNewSharedLocalDestination ()
{ {
m_SharedLocalDestination = CreateNewLocalDestination (); // non-public, EDDSA std::map<std::string, std::string> params
{
{ I2CP_PARAM_INBOUND_TUNNELS_QUANTITY, "2" },
{ I2CP_PARAM_OUTBOUND_TUNNELS_QUANTITY, "2" },
{ I2CP_PARAM_LEASESET_TYPE, "3" }
};
m_SharedLocalDestination = CreateNewLocalDestination (false, i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519,
i2p::data::CRYPTO_KEY_TYPE_ELGAMAL, &params); // non-public, EDDSA
m_SharedLocalDestination->Acquire (); m_SharedLocalDestination->Acquire ();
} }

Loading…
Cancel
Save