Prevent duplicate connections when dialing a multiaddr without a peer idΒ #2714
Open
Description
If we dial a multiaddr without a peer id (e.g. /dns/example.com
), and we exchange peer IDs with the remote, if we already have a non-circuit relay connection to that peer, the connection manager should close the new connection and return the existing connection.
At the moment we end up with multiple connections to the same peer which wastes resources.