Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
dd9b96f7
Commit
dd9b96f7
authored
Oct 06, 2018
by
vyzo
Browse files
check for old-style relay addrs
parent
f3c4a0c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/host/routed/routed.go
View file @
dd9b96f7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment