update keys for NTCP2 and SSU2 addreses

This commit is contained in:
orignal 2022-08-06 16:30:49 -04:00
parent a94ae7d77d
commit 53934a470b

View File

@ -347,10 +347,11 @@ namespace i2p
{ {
(*it)->s = m_NTCP2Keys->staticPublicKey; (*it)->s = m_NTCP2Keys->staticPublicKey;
memcpy ((*it)->i, m_NTCP2Keys->iv, 16); memcpy ((*it)->i, m_NTCP2Keys->iv, 16);
it++;
} }
else else
it = addresses.erase (it); it = addresses.erase (it);
updated = true;; updated = true;
} }
else else
it++; it++;
@ -399,6 +400,7 @@ namespace i2p
{ {
(*it)->s = m_SSU2Keys->staticPublicKey; (*it)->s = m_SSU2Keys->staticPublicKey;
(*it)->i = m_SSU2Keys->intro; (*it)->i = m_SSU2Keys->intro;
it++;
} }
else else
it = addresses.erase (it); it = addresses.erase (it);