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
6bdfcac0
Commit
6bdfcac0
authored
Oct 17, 2018
by
vyzo
Browse files
use AllAddrs as the address factory in autonat
parent
d24fe6ae
Changes
1
Show whitespace changes
Inline
Side-by-side
p2p/host/relay/autorelay.go
View file @
6bdfcac0
...
...
@@ -40,7 +40,7 @@ type AutoRelayHost struct {
}
func
NewAutoRelayHost
(
ctx
context
.
Context
,
bhost
*
basic
.
BasicHost
,
discover
discovery
.
Discoverer
)
*
AutoRelayHost
{
autonat
:=
autonat
.
NewAutoNAT
(
ctx
,
bhost
)
autonat
:=
autonat
.
NewAutoNAT
(
ctx
,
bhost
,
bhost
.
AllAddrs
)
h
:=
&
AutoRelayHost
{
BasicHost
:
bhost
,
discover
:
discover
,
...
...
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