greuseport updates

This commit is contained in:
John 2019-02-01 21:05:56 +08:00
parent ba050d4c86
commit 87d553fca2

View File

@ -41,7 +41,7 @@ func TestNewReusablePortListener(t *testing.T) {
}
defer listenerTwo.Close()
listenerThree, err := greuseport.Listen("tcp6", "[::1]:10081")
listenerThree, err := greuseport.Listen("tcp6", "[::]:10081")
if err != nil {
t.Error(err)
}
@ -79,7 +79,7 @@ func TestListen(t *testing.T) {
}
defer listenerTwo.Close()
listenerThree, err := greuseport.Listen("tcp6", "[::1]:10081")
listenerThree, err := greuseport.Listen("tcp6", "[::]:10081")
if err != nil {
t.Error(err)
}