This commit is contained in:
ed committed 2023-06-11 01:32:56 +00:00
1 parent 22dff4b0e5
commit 22cc22225a
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -247,13 +247,13 @@ def get_fk_salt(cert_path) -> str:
ret = f.read().strip()
except:
if os.path.exists(cert_path):
print("salt from cert")
return unicode(os.path.getmtime(cert_path))
zi = os.path.getmtime(cert_path)
ret = "{}".format(zi).encode("utf-8")
else:
print("salt from os.random")
ret = base64.b64encode(os.urandom(18))
with open(fp, "wb") as f:
f.write(ret + b"\n")
with open(fp, "wb") as f:
f.write(ret + b"\n")
return ret.decode("utf-8")
+1 -1
View File
@@ -1,6 +1,6 @@
# coding: utf-8
VERSION = (1, 7, 4)
VERSION = (1, 7, 5)
CODENAME = "unlinked"
BUILD_DT = (2023, 6, 11)