diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 277576cc..90ba6991 100755 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -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") diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 43b9b4c3..c506c727 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,6 +1,6 @@ # coding: utf-8 -VERSION = (1, 7, 4) +VERSION = (1, 7, 5) CODENAME = "unlinked" BUILD_DT = (2023, 6, 11)