362fbcf90f
A receiving peer trusts the address advertised by a client. However as we do not have external address detection (and there is generally no very good way to do that), the address detected by a peer is the loopback, which is useless. So we attempt to detect these cases and use the IP detected by the TCP connection while keeping the advertised port.