From 0ab037c7b9b50b35ca53a5bf8aabe02e0f5692b4 Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 16 Jan 2025 15:39:17 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 8b5a3cf..2ae6233 100644 --- a/server.py +++ b/server.py @@ -129,7 +129,7 @@ for i in restrict_ip.split(" "): sockets[i].setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sockets[i].bind((i,6667)) sockets[i].listen(1) -context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER, ssl.PROTOCOL_TLSv1_1) +context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) if ssl_option: print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}") context.load_cert_chain(ssl_cert, keyfile=ssl_pkey)