Fixes #33458
Problem
When -bind is used to specify listening addresses without explicitly
including 127.0.0.1:8334=onion, Bitcoin Core does not create a
dedicated Tor socket. The automatic onion service is instead routed
to the public IPv4 port, making it impossible for the node to
distinguish incoming Tor connections from regular IPv4 connections.
The result is that -netinfo and getnetworkinfo silently miscount
Tor inbound connections as IPv4, with no indication that anything is
wrong.
Fix
Add a note to the automatic onion service section of doc/tor.md
explaining this behavior and the two ways to avoid it:
- explicitly add
-bind=127.0.0.1:8334=onionalongside other-bindentries - or disable the automatic onion service with
-listenonion=0