Support RTSP redirects #1909 by @eddielth

This commit is contained in:
Alex X
2025-10-15 14:09:07 +03:00
parent 007e8dbc75
commit d59cb99f0d
2 changed files with 34 additions and 6 deletions
+4
View File
@@ -112,6 +112,10 @@ func (a *Auth) ReadNone(res *Response) bool {
return false
}
func (a *Auth) UserInfo() *url.Userinfo {
return url.UserPassword(a.user, a.pass)
}
func Between(s, sub1, sub2 string) string {
i := strings.Index(s, sub1)
if i < 0 {