Commit dd9b96f7 authored by vyzo's avatar vyzo
Browse files

check for old-style relay addrs

parent f3c4a0c4
...@@ -90,6 +90,11 @@ func (rh *RoutedHost) Connect(ctx context.Context, pi pstore.PeerInfo) error { ...@@ -90,6 +90,11 @@ func (rh *RoutedHost) Connect(ctx context.Context, pi pstore.PeerInfo) error {
continue 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 { if len(rh.Peerstore().Addrs(relayID)) > 0 {
// we already have addrs for this relay // we already have addrs for this relay
continue continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment