insert garlic tag in destination's thread

This commit is contained in:
orignal 2022-03-28 12:15:40 -04:00
parent 4c323a666a
commit 990906c57f
5 changed files with 26 additions and 3 deletions

View file

@ -114,7 +114,7 @@ namespace tunnel
uint8_t key[32];
uint64_t tag = m_Config->GetLastHop ()->GetGarlicKey (key);
if (m_Pool && m_Pool->GetLocalDestination ())
m_Pool->GetLocalDestination ()->AddECIESx25519Key (key, tag);
m_Pool->GetLocalDestination ()->SubmitECIESx25519Key (key, tag);
else
i2p::context.AddECIESx25519Key (key, tag);
}