Unprotected access for websocket consoles.

Ref https://github.com/GNS3/gns3-gui/issues/2883#issuecomment-580677552
This commit is contained in:
grossmj committed 2020-01-31 18:30:26 +08:00
1 parent c313475f68
commit 3484a7dd3d
2 files changed
+4 -2

No files matched your search

@@ -469,6 +469,7 @@ class NodeHandler:
})
async def ws_console(request, response):
print("HERE!")
project = await Controller.instance().get_loaded_project(request.match_info["project_id"])
node = project.get_node(request.match_info["node_id"])
compute = node.compute