From 1f1a3270f7d764bcb14f97e9f4331bac3ed1084f Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 15 Apr 2024 09:26:30 -0400 Subject: [PATCH] fixed IsPublished for ipv6 --- libi2pd/RouterInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/RouterInfo.cpp b/libi2pd/RouterInfo.cpp index ae1ad967..8f12fb57 100644 --- a/libi2pd/RouterInfo.cpp +++ b/libi2pd/RouterInfo.cpp @@ -998,7 +998,7 @@ namespace data bool RouterInfo::IsPublished (bool v4) const { if (m_Caps & (eUnreachable | eHidden)) return false; // if router sets U or H we assume that all addresses are not published - return m_PublishedTransports & (eNTCP2V4 | eSSU2V4); + return m_PublishedTransports & (v4 ? (eNTCP2V4 | eSSU2V4) : (eNTCP2V6 | eSSU2V6)); } bool RouterInfo::IsNAT2NATOnly (const RouterInfo& other) const