add mac_addr to check realy exist

This commit is contained in:
wl-zhao
2024-12-18 14:49:38 +08:00
parent 37eb10c327
commit 580ac932df
+1 -1
View File
@@ -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)