websocket debugging stuff
This commit is contained in:
parent
0cd5ca7aff
commit
4686bf21a7
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue