Commit 9e952be4 authored by Abhishek Upperwal's avatar Abhishek Upperwal
Browse files

modified regex for ipv6

parent 617d7a57
...@@ -44,7 +44,7 @@ func TestInsecure(t *testing.T) { ...@@ -44,7 +44,7 @@ func TestInsecure(t *testing.T) {
func TestDefaultListenAddrs(t *testing.T) { func TestDefaultListenAddrs(t *testing.T) {
ctx := context.Background() 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 // Test 1: Setting the correct listen addresses if userDefined.Transport == nil && userDefined.ListenAddrs == nil
h, err := New(ctx) h, err := New(ctx)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment