Remove all listeners from IPv6 interface

This commit is contained in:
Alexey Khit
2023-07-17 12:53:34 +03:00
parent 14ed1cdee8
commit e4b68518e5
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import (
func TestTimeout(t *testing.T) {
Timeout = time.Millisecond
ln, err := net.Listen("tcp", "localhost:0")
ln, err := net.Listen("tcp4", "localhost:0")
require.Nil(t, err)
client := NewClient("rtsp://" + ln.Addr().String() + "/stream")
@@ -27,7 +27,7 @@ func TestTimeout(t *testing.T) {
func TestMissedControl(t *testing.T) {
Timeout = time.Millisecond
ln, err := net.Listen("tcp", "localhost:0")
ln, err := net.Listen("tcp4", "localhost:0")
require.Nil(t, err)
go func() {