Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run

This commit is contained in:
Nova Cat 2025-01-02 19:56:23 -08:00
parent d8246a9fe1
commit 3acb216b85

View file

@ -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: