add VLC authentication workaround

This commit is contained in:
aler9
2021-10-30 14:47:58 +02:00
parent 146b923b1e
commit 1d5f3c92ae
7 changed files with 49 additions and 21 deletions

View File

@@ -77,7 +77,7 @@ func TestAuth(t *testing.T) {
req.URL = mustParseURL("rtsp://myhost/mypath")
err = va.ValidateRequest(req, nil)
err = va.ValidateRequest(req)
if conf != "nofail" {
require.Error(t, err)
@@ -110,14 +110,14 @@ func TestAuthVLC(t *testing.T) {
require.NoError(t, err)
req := &base.Request{
Method: base.Announce,
Method: base.Setup,
URL: mustParseURL(ca.clientURL),
}
se.AddAuthorization(req)
req.URL = mustParseURL(ca.serverURL)
err = va.ValidateRequest(req, mustParseURL(ca.clientURL))
err = va.ValidateRequest(req)
require.NoError(t, err)
}
}
@@ -154,7 +154,7 @@ func TestAuthHashed(t *testing.T) {
}
va.AddAuthorization(req)
err = se.ValidateRequest(req, nil)
err = se.ValidateRequest(req)
if conf != "nofail" {
require.Error(t, err)