mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
Защита от подмены версии.
This commit is contained in:
parent
e850abfc60
commit
9ab1f1a7cb
@ -190,6 +190,8 @@ def client(port, op = "ping"):
|
||||
os.replace(f"verify/{site}.sig", f"cached/{site}.sig")
|
||||
os.replace(f"verify/{site}.pem", f"cached/{site}.pem")
|
||||
# Переносим папку с файлами
|
||||
if os.path.exists(f'cached/{site}'):
|
||||
rmtree(f"cached/{site}")
|
||||
copytree(f"verify/{site}", f"cached/{site}")
|
||||
rmtree(f"verify/{site}")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user