fn advertised_addr(ep: &Endpoint, public_ip: Option<IpAddr>) -> Option<PeerAddr>
The PeerAddr to advertise for ep, with its IP replaced by public_ip when both are the same family.
ep
public_ip