From 3acb216b85d5bd00771e2d4c52fac49c096184a4 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 2 Jan 2025 19:56:23 -0800 Subject: [PATCH] Update server.py --- server.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index cec1eb2..0031d39 100644 --- a/server.py +++ b/server.py @@ -45,10 +45,12 @@ 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"] == "on" + try: ssl_option = data["ssl"] except: print("SSL will be off.") - ssl_option = False + ssl_option = "error" + print([ssl_option]) + ssl_option = ssl_option.strip().lower() == "on" if ssl_option: try: ssl_cert = data["ssl_cert"] except: