From 578a15bbe5fe5b18ac4b4ff607e0a2527dc80398 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 22 Jun 2022 15:26:23 -0400 Subject: [PATCH] don't send PeerTest msg 5 if address 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 ada51b4e..e9fd32a2 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -1512,7 +1512,7 @@ namespace transport std::shared_ptr addr; if (ExtractEndpoint (buf + offset + 9, len - offset - 9, ep)) addr = r->GetSSU2Address (ep.address ().is_v4 ()); - if (addr) + if (addr && m_Server.IsSupported (ep.address ())) { // send msg 5 to Alice auto session = std::make_shared (m_Server, r, addr);