mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix match for websocket url (fixes #1633)
This commit is contained in:
parent
3d6dad7e7e
commit
41fea2a531
@ -75,8 +75,9 @@ class BroadcastThread(threading.Thread):
|
|||||||
ws_iter = iter(websockets.values())
|
ws_iter = iter(websockets.values())
|
||||||
|
|
||||||
for ws in ws_iter:
|
for ws in ws_iter:
|
||||||
if not ws.terminated and ws.environ["PATH_INFO"].endswith(
|
if (
|
||||||
self.camera
|
not ws.terminated
|
||||||
|
and ws.environ["PATH_INFO"] == f"/{self.camera}"
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
ws.send(buf, binary=True)
|
ws.send(buf, binary=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user