Unprotected access for websocket consoles.

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

View File

@ -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