mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
server: use user-provided ListenPacket in case of multicast
This commit is contained in:
@@ -96,7 +96,7 @@ func newServerUDPListener(
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp, err := net.ListenPacket("udp4", (&net.UDPAddr{
|
tmp, err := s.ListenPacket("udp4", (&net.UDPAddr{
|
||||||
IP: net.ParseIP("224.0.0.0"),
|
IP: net.ParseIP("224.0.0.0"),
|
||||||
Port: addr.Port,
|
Port: addr.Port,
|
||||||
}).String())
|
}).String())
|
||||||
|
Reference in New Issue
Block a user