From 89d6d0f99e9550971cfb4bc9095178bdccc19347 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Thu, 29 Jul 2021 15:11:02 +0200 Subject: [PATCH] unexport method --- internal/core/rtsp_conn.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/core/rtsp_conn.go b/internal/core/rtsp_conn.go index ff91b102..e37a7c67 100644 --- a/internal/core/rtsp_conn.go +++ b/internal/core/rtsp_conn.go @@ -132,7 +132,7 @@ func (c *rtspConn) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base. URL: ctx.Req.URL, IP: c.ip(), ValidateCredentials: func(authMethods []headers.AuthMethod, pathUser string, pathPass string) error { - return c.ValidateCredentials(authMethods, pathUser, pathPass, ctx.Path, ctx.Req) + return c.validateCredentials(authMethods, pathUser, pathPass, ctx.Path, ctx.Req) }, Res: resc, }) @@ -175,8 +175,7 @@ func (c *rtspConn) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base. }, res.Stream, nil } -// ValidateCredentials allows to validate the credentials of a path. -func (c *rtspConn) ValidateCredentials( +func (c *rtspConn) validateCredentials( authMethods []headers.AuthMethod, pathUser string, pathPass string,