diff --git a/custom_routes.py b/custom_routes.py index c85fec1..9e2dca2 100755 --- a/custom_routes.py +++ b/custom_routes.py @@ -222,6 +222,6 @@ async def shellagent_check_exist(request): data = await request.json() return_dict = { - "exist": os.path.exists(data["path"]) + "exist": uuid.getnode() == data["mac_addr"] and os.path.exists(data["path"]) # really exist, instead of same name } return web.json_response(return_dict, status=200) \ No newline at end of file