Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run
Some checks are pending
Check syntax / check (push) Waiting to run
This commit is contained in:
parent
3acb216b85
commit
4c8489ef43
1 changed files with 2 additions and 4 deletions
|
@ -45,12 +45,10 @@ with open(sys.argv[1], 'r') as file:
|
||||||
except: print("Using 255 as a ping timeout.")
|
except: print("Using 255 as a ping timeout.")
|
||||||
try: restrict_ip = data["restrict-ip"]
|
try: restrict_ip = data["restrict-ip"]
|
||||||
except: print("Listening on all hosts possible.")
|
except: print("Listening on all hosts possible.")
|
||||||
try: ssl_option = data["ssl"]
|
try: ssl_option = bool(data["ssl"])
|
||||||
except:
|
except:
|
||||||
print("SSL will be off.")
|
print("SSL will be off.")
|
||||||
ssl_option = "error"
|
ssl_option = False
|
||||||
print([ssl_option])
|
|
||||||
ssl_option = ssl_option.strip().lower() == "on"
|
|
||||||
if ssl_option:
|
if ssl_option:
|
||||||
try: ssl_cert = data["ssl_cert"]
|
try: ssl_cert = data["ssl_cert"]
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue