Vasil Dimov 9a7e5f4d68
net: don't extra bind for Tor if binds are restricted
If only `-bind=addr:port` is given (without `-bind=...=onion`) then we
would bind to `addr:port` _and_ to `127.0.0.1:8334` in addition which
may be unexpected, assuming the semantic of `-bind=addr:port` is
"bind _only_ to `addr:port`".

Change the above to not do the additional bind: if only
`-bind=addr:port` is given (without `-bind=...=onion`) then bind to
`addr:port` (only). If we are creating a Tor hidden service then use
`addr:port` as target (same behavior as before
https://github.com/bitcoin/bitcoin/pull/19991).

This allows disabling binding on the onion port.

Fixes https://github.com/bitcoin/bitcoin/issues/22726
2024-07-02 14:17:50 +02:00
..
2024-06-13 11:20:49 +01:00
2024-06-18 18:47:51 +02:00
2024-05-20 16:48:19 +00:00
2024-04-10 17:01:27 +02:00
2024-06-13 11:20:49 +01:00
2024-03-04 19:53:30 -05:00
2024-03-26 16:51:46 +00:00
2024-05-20 16:48:19 +00:00
2024-05-14 10:24:31 +02:00
2024-05-14 10:24:31 +02:00
2024-06-21 09:42:32 +01:00
2024-04-01 14:37:24 -04:00
2024-04-01 14:37:24 -04:00