Browse Source

unexport method

pull/483/head
aler9 4 years ago
parent
commit
89d6d0f99e
  1. 5
      internal/core/rtsp_conn.go

5
internal/core/rtsp_conn.go

@ -132,7 +132,7 @@ func (c *rtspConn) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.
URL: ctx.Req.URL, URL: ctx.Req.URL,
IP: c.ip(), IP: c.ip(),
ValidateCredentials: func(authMethods []headers.AuthMethod, pathUser string, pathPass string) error { 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, Res: resc,
}) })
@ -175,8 +175,7 @@ func (c *rtspConn) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*base.
}, res.Stream, nil }, res.Stream, nil
} }
// ValidateCredentials allows to validate the credentials of a path. func (c *rtspConn) validateCredentials(
func (c *rtspConn) ValidateCredentials(
authMethods []headers.AuthMethod, authMethods []headers.AuthMethod,
pathUser string, pathUser string,
pathPass string, pathPass string,

Loading…
Cancel
Save