Explorar el Código

fix match for websocket url (fixes #1633)

Blake Blackshear hace 3 años
padre
commit
41fea2a531
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      frigate/output.py

+ 3 - 2
frigate/output.py

@@ -75,8 +75,9 @@ class BroadcastThread(threading.Thread):
                     ws_iter = iter(websockets.values())
 
                 for ws in ws_iter:
-                    if not ws.terminated and ws.environ["PATH_INFO"].endswith(
-                        self.camera
+                    if (
+                        not ws.terminated
+                        and ws.environ["PATH_INFO"] == f"/{self.camera}"
                     ):
                         try:
                             ws.send(buf, binary=True)