From 792e6cece49925b90e70b3e3e160c00678c89536 Mon Sep 17 00:00:00 2001 From: Nsable-sh Date: Thu, 13 Aug 2026 16:24:32 -0300 Subject: net: count direct onion peers by endpoint --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 16aaa6e..3660735 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -278,7 +278,7 @@ string GetDiagnosticsText() { if (pnode->fInbound) nInbound++; - if (pnode->strBtfMeeting.compare(0, 6, "onion ") == 0) + if (pnode->strBtfMeeting.find(".onion:") != string::npos) nDirectOnion++; else if (!pnode->strBtfMeeting.empty()) nRendezvous++; -- cgit v1.2.3