Browse Source

modified regex for ipv6

pull/378/head
Abhishek Upperwal 6 years ago
parent
commit
9e952be412
  1. 2
      libp2p_test.go

2
libp2p_test.go

@ -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)

Loading…
Cancel
Save