websocket debugging stuff

This commit is contained in:
Jenny Danzmayr 2024-03-28 21:38:33 +01:00
parent 0cd5ca7aff
commit 4686bf21a7

View file

@ -64,6 +64,7 @@ class MeshConsumer(AsyncWebsocketConsumer):
self.headers = dict(self.scope["headers"])
if not constant_time_compare(self.headers[b"x-mesh-secret"].strip(),
settings.SECRET_MESH_KEY.encode()):
print("denying websocket connection with wrong mesh key")
raise DenyConnection
# await self.log_text(None, "new mesh websocket connection")