Issue Details
- Number
- 31293
- Title
- Discover() will not run if listening on any address with an explicit bind=0.0.0.0
- Description
- ### Current behaviour
https://github.com/bitcoin/bitcoin/blob/85bcfeea23568053ea09013fb8263fa1511d7123/src/init.cpp#L1890-L1892
`Discover()` will run only if we are listening on all addresses (`bind_on_any` is `true`). However if `-bind=0.0.0.0:port` is explicitly given, then `bind_on_any` will end up being `false` and thus `Discover()` will not run when it should.
### Expected behaviour
Discover own addresses even if `-bind=0.0.0.0:port` is given.
### Steps to reproduce
Use `-bind=0.0.0.0:port`.
### How did you obtain Bitcoin Core
Compiled from source
### What version of Bitcoin Core are you using?
master@85bcfeea23568053ea09013fb8263fa1511d7123
### Operating system and version
Windows 3.11
### Background
See https://github.com/bitcoin/bitcoin/issues/31133#issuecomment-2477231557
- URL
-
https://github.com/bitcoin/bitcoin/issue/31293
- Closed by
-
Back to List