do not listen on IPv6 when host is 0.0.0.0 (#240)

(https://github.com/aler9/mediamtx/issues/1665)
This commit is contained in:
Alessandro Ros
2023-04-10 22:42:19 +02:00
committed by GitHub
parent 9ca5e130fe
commit c56eee37f8
7 changed files with 34 additions and 16 deletions

View File

@@ -63,7 +63,8 @@ func (cm *clientMedia) allocateUDPListeners(multicast bool, rtpAddress string, r
cm.c.WriteTimeout,
multicast,
rtcpAddress,
cm, false)
cm,
false)
if err != nil {
l1.close()
return err