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
0ff73933
Commit
0ff73933
authored
Oct 18, 2018
by
vyzo
Browse files
fix announced relay address
parent
6bdfcac0
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/host/relay/autorelay.go
View file @
0ff73933
...
...
@@ -199,12 +199,12 @@ func (h *AutoRelayHost) doUpdateAddrs() {
}
}
circuit
,
err
:=
ma
.
NewMultiaddr
(
"/p2p-circuit"
)
if
err
!=
nil
{
panic
(
err
)
}
for
_
,
pi
:=
range
h
.
relays
{
circuit
,
err
:=
ma
.
NewMultiaddr
(
fmt
.
Sprintf
(
"/ipfs/%s/p2p-circuit"
,
pi
.
ID
.
Pretty
()))
if
err
!=
nil
{
panic
(
err
)
}
for
_
,
addr
:=
range
pi
.
Addrs
{
if
!
manet
.
IsPrivateAddr
(
addr
)
{
pub
:=
addr
.
Encapsulate
(
circuit
)
...
...
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