Remove on the fly stream creation for security reason

This commit is contained in:
Alexey Khit
2023-06-29 22:52:59 +03:00
parent 37abe2ce0d
commit fa8d4e4807
6 changed files with 9 additions and 23 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import (
func handlerWSMSE(tr *ws.Transport, msg *ws.Message) error {
src := tr.Request.URL.Query().Get("src")
stream := streams.GetOrNew(src)
stream := streams.Get(src)
if stream == nil {
return errors.New(api.StreamNotFound)
}
@@ -60,7 +60,7 @@ func handlerWSMSE(tr *ws.Transport, msg *ws.Message) error {
func handlerWSMP4(tr *ws.Transport, msg *ws.Message) error {
src := tr.Request.URL.Query().Get("src")
stream := streams.GetOrNew(src)
stream := streams.Get(src)
if stream == nil {
return errors.New(api.StreamNotFound)
}