Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-transport-upgrader
Commits
5fc93cfa
Commit
5fc93cfa
authored
Feb 25, 2021
by
Marten Seemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't listen on all interfaces in tests
parent
88bf9291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
listener_test.go
listener_test.go
+1
-1
No files found.
listener_test.go
View file @
5fc93cfa
...
@@ -43,7 +43,7 @@ func createListener(t *testing.T, upgrader *st.Upgrader) transport.Listener {
...
@@ -43,7 +43,7 @@ func createListener(t *testing.T, upgrader *st.Upgrader) transport.Listener {
t
.
Helper
()
t
.
Helper
()
require
:=
require
.
New
(
t
)
require
:=
require
.
New
(
t
)
addr
,
err
:=
ma
.
NewMultiaddr
(
"/ip4/
0
.0.0.
0
/tcp/0"
)
addr
,
err
:=
ma
.
NewMultiaddr
(
"/ip4/
127
.0.0.
1
/tcp/0"
)
require
.
NoError
(
err
)
require
.
NoError
(
err
)
ln
,
err
:=
manet
.
Listen
(
addr
)
ln
,
err
:=
manet
.
Listen
(
addr
)
...
...
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