This repository has been archived by the owner on May 11, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We only ever want to dial the remote peer's observed address (to prevent DoS attacks), so we might as well _always_ replace the reported addresses with the observed address. This also fixes a few issues in the original PR: * Simpler logic. * Replaces the IP address, not the port. That's what we actually care about. * Won't accidentally dial "skipped" protocols (e.g., circuit transport).
- Loading branch information