mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
verify signature and send peer test msg 5
This commit is contained in:
parent
3cd74f0d4f
commit
47460d86b2
4 changed files with 54 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue