Skip to content

Commit

Permalink
reject peer test msg 2 if peer testing is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Mar 1, 2024
1 parent b9773c8 commit 6ca266f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/SSU2Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2180,7 +2180,7 @@ 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 ()))
if (addr && m_Server.IsSupported (ep.address ()) && addr->IsPeerTesting ())
{
// send msg 5 to Alice
auto session = std::make_shared<SSU2Session> (m_Server, r, addr);
Expand Down

0 comments on commit 6ca266f

Please sign in to comment.