From ea708bb606c537262748bbb3456bb077df806b31 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Wed, 23 Aug 2023 10:14:58 +0300 Subject: [PATCH] Add responses on RTSP OPTIONS pings --- pkg/rtsp/conn.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/rtsp/conn.go b/pkg/rtsp/conn.go index 2edf9215..85bd53a8 100644 --- a/pkg/rtsp/conn.go +++ b/pkg/rtsp/conn.go @@ -167,6 +167,12 @@ func (c *Conn) Handle() (err error) { return } c.Fire(req) + if req.Method == MethodOptions { + res := &tcp.Response{Request: req} + if err = c.WriteResponse(res); err != nil { + return + } + } continue default: