rtsp: use session ID in requests to the external authentication server (#5977)

Co-authored-by: Cycle1337 <Cycle1337@outlook.com>
This commit is contained in:
Alessandro Ros
2026-07-23 23:04:29 +02:00
committed by GitHub
co-authored by Cycle1337
parent 5d0ba43667
commit c23bdf2924
+2 -2
View File
@@ -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,