Update server.py
All checks were successful
/ check (push) Successful in 17s

This commit is contained in:
Nova Cat 2025-01-24 19:18:51 -08:00
parent 5e0a56ebef
commit ee962b1a4a

View file

@ -147,8 +147,6 @@ context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
for i in context.get_ciphers():
if not i["protocol"] in foundVersions:
foundVersions.append(i["protocol"])
context.options |= ssl.OP_NO_SSLv2 # Disable SSL 2
context.options |= ssl.OP_NO_SSLv3 # Disable SSL 3
if ssl_option:
print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}")
context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)