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
9e952be4
Commit
9e952be4
authored
Jul 28, 2018
by
Abhishek Upperwal
Browse files
modified regex for ipv6
parent
617d7a57
Changes
1
Hide whitespace changes
Inline
Side-by-side
libp2p_test.go
View file @
9e952be4
...
...
@@ -44,7 +44,7 @@ func TestInsecure(t *testing.T) {
func
TestDefaultListenAddrs
(
t
*
testing
.
T
)
{
ctx
:=
context
.
Background
()
re
:=
regexp
.
MustCompile
(
"/ip[4|6]/0.0.0.0/tcp/"
)
re
:=
regexp
.
MustCompile
(
"/
(
ip
)
[4|6]/
((
0.0.0.0
)|(::))
/tcp/"
)
// Test 1: Setting the correct listen addresses if userDefined.Transport == nil && userDefined.ListenAddrs == nil
h
,
err
:=
New
(
ctx
)
...
...
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