mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
v1.7.5
This commit is contained in:
parent
22dff4b0e5
commit
22cc22225a
|
@ -247,11 +247,11 @@ def get_fk_salt(cert_path) -> str:
|
||||||
ret = f.read().strip()
|
ret = f.read().strip()
|
||||||
except:
|
except:
|
||||||
if os.path.exists(cert_path):
|
if os.path.exists(cert_path):
|
||||||
print("salt from cert")
|
zi = os.path.getmtime(cert_path)
|
||||||
return unicode(os.path.getmtime(cert_path))
|
ret = "{}".format(zi).encode("utf-8")
|
||||||
else:
|
else:
|
||||||
print("salt from os.random")
|
|
||||||
ret = base64.b64encode(os.urandom(18))
|
ret = base64.b64encode(os.urandom(18))
|
||||||
|
|
||||||
with open(fp, "wb") as f:
|
with open(fp, "wb") as f:
|
||||||
f.write(ret + b"\n")
|
f.write(ret + b"\n")
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
VERSION = (1, 7, 4)
|
VERSION = (1, 7, 5)
|
||||||
CODENAME = "unlinked"
|
CODENAME = "unlinked"
|
||||||
BUILD_DT = (2023, 6, 11)
|
BUILD_DT = (2023, 6, 11)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue