verify signature and send peer test msg 5

This commit is contained in:
orignal 2022-06-07 12:55:58 -04:00
parent 3cd74f0d4f
commit 47460d86b2
4 changed files with 54 additions and 9 deletions

View file

@ -237,6 +237,14 @@ namespace transport
m_PendingOutgoingSessions.emplace (session->GetRemoteEndpoint (), session);
}
std::shared_ptr<SSU2Session> SSU2Server::FindSession (const i2p::data::IdentHash& ident) const
{
auto it = m_SessionsByRouterHash.find (ident);
if (it != m_SessionsByRouterHash.end ())
return it->second;
return nullptr;
}
void SSU2Server::AddRelay (uint32_t tag, std::shared_ptr<SSU2Session> relay)
{
m_Relays.emplace (tag, relay);