Add User-Agent to go2rtc RTSP requests

This commit is contained in:
Alexey Khit
2022-11-11 18:02:08 +03:00
parent aef84cef6b
commit 0127115180
+2
View File
@@ -85,6 +85,8 @@ func rtspHandler(url string) (streamer.Producer, error) {
return nil, err
}
conn.UserAgent = app.UserAgent
if log.Trace().Enabled() {
conn.Listen(func(msg interface{}) {
switch msg := msg.(type) {