Update server.py
All checks were successful
/ check (push) Successful in 1m3s

This commit is contained in:
Nova Cat 2025-01-21 11:37:06 -08:00
parent ac76ec551c
commit 5646824f40

View file

@ -130,6 +130,8 @@ for i in restrict_ip.split(" "):
sockets[i].bind((i,6667))
sockets[i].listen(1)
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.options |= ssl.OP_NO_TLSv1 # Disable TLS 1.0
context.options |= ssl.OP_NO_TLSv1_1 # Disable TLS 1.1
if ssl_option:
print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}")
context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)