1 minor finding
Findings
[minor] · Default onion-port check rejects startup with listening disabled
With no explicit binds, -listen=0 -port=65535 now fails startup even though the derived onion port would neither be bound nor passed to Tor.
Location: src/init.cpp:2315 (head).
Details and suggested fix
With -port=65535, no -bind or -whitebind, and listening disabled, both bind vectors are empty and this branch unconditionally returns OnionPortError(). This also affects listening disabled implicitly by -connect, -noconnect, -maxconnections=0, or -proxy without an explicit -listen=1. In these configurations, parameter interaction disables listenonion, so no TorController is constructed, and CConnman::Start skips InitBinds because fListen is false. The base constructed an unused port-zero target instead of rejecting startup. The error's explicit-bind workaround cannot preserve disabled listening: binds are rejected with explicit -listen=0, or enable listening when it was disabled implicitly. Lowering or removing -port remains a workaround. Gate this rejection on fListen, for example if (onion_port_overflow && fListen) return OnionPortError();, and add a successful-start case for -listen=0 -port=65535. Checking only listenonion would be insufficient because InitBinds still binds the default onion address when listening is enabled but automatic onion-service creation is disabled. No actual deployment using the triggering configuration was identified, so operator prevalence is unknown.