rtsp: use session ID in requests to the external authentication server (#5977)
Co-authored-by: Cycle1337 <Cycle1337@outlook.com>
This commit is contained in:
co-authored by
Cycle1337
parent
5d0ba43667
commit
c23bdf2924
@@ -209,7 +209,7 @@ func (s *session) onAnnounce(c *conn, ctx *gortsplib.ServerHandlerOnAnnounceCtx)
|
||||
Publish: true,
|
||||
UserAgent: userAgent,
|
||||
Proto: auth.ProtocolRTSP,
|
||||
ID: &c.uuid,
|
||||
ID: &s.uuid,
|
||||
Credentials: rtsp.Credentials(ctx.Request),
|
||||
IP: c.ip(),
|
||||
CustomVerifyFunc: customVerifyFunc,
|
||||
@@ -283,7 +283,7 @@ func (s *session) onSetup(c *conn, ctx *gortsplib.ServerHandlerOnSetupCtx,
|
||||
Query: ctx.Query,
|
||||
UserAgent: userAgent,
|
||||
Proto: auth.ProtocolRTSP,
|
||||
ID: &c.uuid,
|
||||
ID: &s.uuid,
|
||||
Credentials: rtsp.Credentials(ctx.Request),
|
||||
IP: c.ip(),
|
||||
CustomVerifyFunc: customVerifyFunc,
|
||||
|
||||
Reference in New Issue
Block a user