From 4c8489ef435d42d51044488866aa9f0b2b730a14 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 2 Jan 2025 19:57:09 -0800 Subject: [PATCH] Update server.py --- server.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 0031d39..e6b0102 100644 --- a/server.py +++ b/server.py @@ -45,12 +45,10 @@ with open(sys.argv[1], 'r') as file: except: print("Using 255 as a ping timeout.") try: restrict_ip = data["restrict-ip"] except: print("Listening on all hosts possible.") - try: ssl_option = data["ssl"] + try: ssl_option = bool(data["ssl"]) except: print("SSL will be off.") - ssl_option = "error" - print([ssl_option]) - ssl_option = ssl_option.strip().lower() == "on" + ssl_option = False if ssl_option: try: ssl_cert = data["ssl_cert"] except: