diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f07b2f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build/ +*.pyc +*.bkup \ No newline at end of file diff --git a/main.py b/main.py index 0763aed..0c12ea2 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ # License v3.0. A copy of this license is available at # https://www.gnu.org/licenses/agpl-3.0.en.html -app_version = "v1.2.2" +app_version = "v1.2.3" import time import sys @@ -19,7 +19,10 @@ from colorama import Fore from client_info import request_client_identifier -request_client = tls_client.Session(client_identifier=request_client_identifier) +request_client = tls_client.Session( + client_identifier=request_client_identifier, + random_tls_extension_order=True +) # change cwd (for auto-backup) try: cwd = sys.argv[2] diff --git a/restore.py b/restore.py index ee2ef69..5f9bed1 100644 --- a/restore.py +++ b/restore.py @@ -24,7 +24,7 @@ def __init__(self, token, c: console.prnt, restore_server_folders, restore_data, self.restore_data = restore_data if self.restore_data['version'] != version: - self.c.warn(f"This Backup wasn't done on the same version of this software. (b: {self.restore_data}, c:{version})") + self.c.warn(f"This Backup wasn't done on the same version of this software. (backup: {self.restore_data['version']}, current version:{version})") self.c.warn(f"This could lead to unexpected errors or side effects.") self.c.warn(f"It's recommended you change your software version to the same version as the backup was done on before continuing.") self.c.inp(f"Are you sure you want to continue? ({colours['main_colour']}y/n{colours['white']})", end=f"{colours['white']}")