Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
6 years ago
by
vyzo
Browse files
Options
Download
Email Patches
Plain Diff
fix announced relay address
parent
6bdfcac0
master
fix/473
punching
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p2p/host/relay/autorelay.go
+5
-5
p2p/host/relay/autorelay.go
with
5 additions
and
5 deletions
+5
-5
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
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help