From 9e952be41289e2cc3d4890c6c186a58883be46ca Mon Sep 17 00:00:00 2001 From: Abhishek Upperwal Date: Sat, 28 Jul 2018 02:48:09 +0530 Subject: [PATCH] modified regex for ipv6 --- libp2p_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p_test.go b/libp2p_test.go index a930824..293e0fe 100644 --- a/libp2p_test.go +++ b/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) -- GitLab