diff --git a/p2p/host/routed/routed.go b/p2p/host/routed/routed.go index 6522c3e88c479b773c76322fb896a6ef3bd240c9..5435bcd31c15d79dac3ea38e33d0882ef278a4be 100644 --- a/p2p/host/routed/routed.go +++ b/p2p/host/routed/routed.go @@ -90,6 +90,11 @@ func (rh *RoutedHost) Connect(ctx context.Context, pi pstore.PeerInfo) error { continue } + if relayID == pi.ID { + // it's an old style p2p-circuit address that includes the peer + continue + } + if len(rh.Peerstore().Addrs(relayID)) > 0 { // we already have addrs for this relay continue