Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swarm: translate external address candidate
The `NewExternalAddrCandidate` event is yielded both before and after address translation. This will cause, in the case of TCP, ephemeral ports to be added as candidate. In turn, that will cause protocols like AutoNAT to fail as these candidates are not actually reachable/external. We will now only yield the original candidate if translation did not apply. Fixes libp2p#4153
- Loading branch information