From bbf868c1de2f1bc917068ec62302f19da30d8adf Mon Sep 17 00:00:00 2001 From: swee Date: Thu, 2 Jan 2025 19:59:58 -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 7df05cc..7663509 100644 --- a/server.py +++ b/server.py @@ -91,7 +91,7 @@ for i in restrict_ip.split(" "): context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) if ssl_option: print(f"Loading SSL cert {ssl_cert} with key {ssl_pkey}") - ssl_context.load_cert_chain(ssl_cert, keyfile=ssl_pkey) + context.load_cert_chain(ssl_cert, keyfile=ssl_pkey) for i in restrict_ip.split(" "): sockets_ssl[i] = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sockets_ssl[i].setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)