From 8cd60510aa432cefc7df9bd9bcf7be5d81dadfde Mon Sep 17 00:00:00 2001 From: Soheil Hassas Yeganeh Date: Mon, 3 Jul 2017 09:35:36 -0400 Subject: [PATCH] Remove V4 address family in cmux_test.go. On IPv6 only machines, cmux_test.go would fail because it forces tcp4. Simply use tcp, instead. --- cmux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmux_test.go b/cmux_test.go index 5331519..8746c0d 100644 --- a/cmux_test.go +++ b/cmux_test.go @@ -76,7 +76,7 @@ func (l *chanListener) Accept() (net.Conn, error) { } func testListener(t *testing.T) (net.Listener, func()) { - l, err := net.Listen("tcp4", ":0") + l, err := net.Listen("tcp", ":0") if err != nil { t.Fatal(err) }