From 7b43e10b8832da7f4e9ce60572fe329b72a663c7 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 25 Jan 2026 13:57:31 -0500 Subject: [PATCH] reply with relay tag only if accept tunnels --- libi2pd/SSU2Session.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index 15816f7c..ecd564d7 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -1636,11 +1636,14 @@ namespace transport LogPrint (eLogDebug, "SSU2: RelayTagRequest"); if (!m_RelayTag) { - auto addr = FindLocalAddress (); - if (addr && addr->IsIntroducer ()) + if (i2p::context.AcceptsTunnels()) { - RAND_bytes ((uint8_t *)&m_RelayTag, 4); - m_Server.AddRelay (m_RelayTag, shared_from_this ()); + auto addr = FindLocalAddress (); + if (addr && addr->IsIntroducer ()) + { + RAND_bytes ((uint8_t *)&m_RelayTag, 4); + m_Server.AddRelay (m_RelayTag, shared_from_this ()); + } } } break;