Skip to content

Commit

Permalink
check own peer test cap for peer test msg 2
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 1, 2024
1 parent 6ca266f commit 38cc01e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libi2pd/SSU2Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2180,7 +2180,8 @@ namespace transport
std::shared_ptr<const i2p::data::RouterInfo::Address> addr;
if (ExtractEndpoint (buf + offset + 10, asz, ep))
addr = r->GetSSU2Address (ep.address ().is_v4 ());
if (addr && m_Server.IsSupported (ep.address ()) && addr->IsPeerTesting ())
if (addr && m_Server.IsSupported (ep.address ()) &&
i2p::context.GetRouterInfo ().IsSSU2PeerTesting (ep.address ().is_v4 ()))
{
// send msg 5 to Alice
auto session = std::make_shared<SSU2Session> (m_Server, r, addr);
Expand Down

0 comments on commit 38cc01e

Please sign in to comment.