mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
listen on IPv6 too in case of multicast
This commit is contained in:
@@ -441,7 +441,7 @@ func TestServerRead(t *testing.T) {
|
||||
defer l2.Close()
|
||||
|
||||
case "multicast":
|
||||
l1, err = net.ListenPacket("udp4", "224.0.0.0:"+strconv.FormatInt(int64(th.Ports[0]), 10))
|
||||
l1, err = net.ListenPacket("udp", "224.0.0.0:"+strconv.FormatInt(int64(th.Ports[0]), 10))
|
||||
require.NoError(t, err)
|
||||
defer l1.Close()
|
||||
|
||||
@@ -455,7 +455,7 @@ func TestServerRead(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
l2, err = net.ListenPacket("udp4", "224.0.0.0:"+strconv.FormatInt(int64(th.Ports[1]), 10))
|
||||
l2, err = net.ListenPacket("udp", "224.0.0.0:"+strconv.FormatInt(int64(th.Ports[1]), 10))
|
||||
require.NoError(t, err)
|
||||
defer l2.Close()
|
||||
|
||||
|
Reference in New Issue
Block a user