From f621a229cdaff090b01cb2805a0fc92d59e07167 Mon Sep 17 00:00:00 2001 From: twisterarmy Date: Wed, 30 Apr 2025 06:26:36 +0300 Subject: [PATCH] fix `IsYggdrasil` condition --- src/netbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netbase.cpp b/src/netbase.cpp index e3702c1f..a3bdb6db 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -684,7 +684,7 @@ bool CNetAddr::IsTor() const // https://yggdrasil-network.github.io/2018/07/28/addressing.html#addressing-in-yggdrasil bool CNetAddr::IsYggdrasil() const { - return (ip[0] & 0xFE) == 0x20; // @TODO wants revision + return IsIPv6() && (ip[0] & 0xFE) == 0x02; // @TODO wants revision } bool CNetAddr::IsLocal() const