upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 16:24:32 -0300
committerNsable-sh <nsable-sh@noreply.git.bitflash.network>2026-08-13 16:24:32 -0300
commit792e6cece49925b90e70b3e3e160c00678c89536 (patch)
tree0a792fc17aa0f123cb713ad81c797ccd2129284c /src
parent0ae3058a7f871acb533fbc10b662295774d71fe6 (diff)
net: count direct onion peers by endpoint
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
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()
278 { 278 {
279 if (pnode->fInbound) 279 if (pnode->fInbound)
280 nInbound++; 280 nInbound++;
281 if (pnode->strBtfMeeting.compare(0, 6, "onion ") == 0) 281 if (pnode->strBtfMeeting.find(".onion:") != string::npos)
282 nDirectOnion++; 282 nDirectOnion++;
283 else if (!pnode->strBtfMeeting.empty()) 283 else if (!pnode->strBtfMeeting.empty())
284 nRendezvous++; 284 nRendezvous++;