Restore IPv6 support for API and RTSP #532

This commit is contained in:
Alexey Khit
2023-07-20 21:51:55 +03:00
parent 6c0918662e
commit 189f142fae
6 changed files with 18 additions and 15 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ func Init() {
}
// default config
conf.Mod.Listen = ":8554"
conf.Mod.Listen = "0.0.0.0:8554"
conf.Mod.DefaultQuery = "video&audio"
app.LoadConfig(&conf)
@@ -45,7 +45,7 @@ func Init() {
return
}
ln, err := net.Listen("tcp4", address)
ln, err := net.Listen("tcp", address)
if err != nil {
log.Error().Err(err).Msg("[rtsp] listen")
return