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

This commit is contained in:
Nova Cat 2025-01-29 19:06:46 -08:00
parent a444713171
commit b53a82fd4c

View file

@ -778,7 +778,7 @@ def ssl_session(sock):
try: try:
while opened: while opened:
context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
context.minimum_version = ssl.TLSVersion.TLSv1 context.minimum_version = ssl.TLSVersion.TLSv1_2
context.set_ciphers('DEFAULT:@SECLEVEL=0') context.set_ciphers('DEFAULT:@SECLEVEL=0')
context.load_cert_chain(ssl_cert, keyfile=ssl_pkey) context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)
print("Waiting for connection...") print("Waiting for connection...")