From 5530c6d257b0731a66c3c92e179923f7ca639512 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 20:48:53 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 67efcbe..2f008a0 100644 --- a/server.py +++ b/server.py @@ -101,8 +101,8 @@ def relay(): contx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) if certfile: contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem"); - context.load_verify_locations(cafile=ssl.CERT_AU); - context.verify_mode = ssl.CERT_OPTIONAL + contx.load_verify_locations(cafile=ssl.CERT_AU); + contx.verify_mode = ssl.CERT_OPTIONAL contx.check_hostname = False; gemsocket = contx.wrap_socket(gsocket) gemsocket.connect((urlparse(fulladdr).hostname, 1965))