Fix accessing RTMP stream without token or streamkey for anonymous users

This commit is contained in:
Ingo Oppermann
2024-02-29 14:30:24 +01:00
parent 2514feec23
commit aaec24b898
3 changed files with 33 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ func TestToken(t *testing.T) {
u, err := url.Parse(d[0])
require.NoError(t, err)
path, token := GetToken(u)
path, token, _ := GetToken(u)
require.Equal(t, d[1], path, "url=%s", u.String())
require.Equal(t, d[2], token, "url=%s", u.String())