Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
rpc: Add listen address to incoming connections in `getpeerinfo` #10478
This adds the listening address on which incoming connections were received to the CNode and CNodeStats structures.
The address is reported in
This can be useful for distinguishing connections received on different listening ports (e.g. when using a different listening port for Tor hidden service connections) or different networks.
Good point. We could also call getsockname for for outgoing connections, though the meaning is somewhat more obscure.
We use both