From 6ca266ff3bb4bbe36eef17385b38e74708b8eb75 Mon Sep 17 00:00:00 2001 From: orignal <i2porignal@yandex.ru> Date: Fri, 1 Mar 2024 14:03:13 -0500 Subject: [PATCH] reject peer test msg 2 if peer testing is not supported --- libi2pd/SSU2Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index 4015dcac..2b9dfb6b 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -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);