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
1536433f
Commit
1536433f
authored
Oct 18, 2018
by
vyzo
Browse files
use TempAddrTTL for relay addrs
parent
c52f4523
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/host/routed/routed.go
View file @
1536433f
...
...
@@ -102,7 +102,7 @@ func (rh *RoutedHost) Connect(ctx context.Context, pi pstore.PeerInfo) error {
continue
}
rh
.
Peerstore
()
.
AddAddrs
(
relayID
,
relayAddrs
,
pstore
.
Addr
ess
TTL
)
rh
.
Peerstore
()
.
AddAddrs
(
relayID
,
relayAddrs
,
pstore
.
Temp
AddrTTL
)
}
// if we're here, we got some addrs. let's use our wrapped host to connect.
...
...
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