From 6ba42a0912e3b3ce6eb459ffd6c5d8f6eb0238bf Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 2 Mar 2024 18:17:56 -0500 Subject: [PATCH] check if established peer test session has the same address type --- libi2pd/SSU2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index 976bffbf..812f49d3 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -858,7 +858,7 @@ namespace transport { auto remoteAddr = it->second->GetAddress (); if (!remoteAddr || !remoteAddr->IsPeerTesting () || - (v4 && !addr->IsV4 ()) || (!v4 && !addr->IsV6 ())) return false; + (v4 && !remoteAddr->IsV4 ()) || (!v4 && !remoteAddr->IsV6 ())) return false; auto s = it->second; if (s->IsEstablished ()) GetService ().post ([s]() { s->SendPeerTest (); });