From c5d2eb66cc8348e43c5ecfd1b38d1bb44add7960 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 20:59:41 -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 c0c0be0..b2404c8 100644 --- a/server.py +++ b/server.py @@ -99,10 +99,10 @@ def relay(): gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) fulladdr = "gemini://" + url + ("?" + queries if queries != None else "") contx = ssl.create_default_context() + contx.check_hostname = False contx.verify_mode = ssl.CERT_NONE if certfile: contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem"); - contx.check_hostname = False; gemsocket = contx.wrap_socket(gsocket) gemsocket.connect((urlparse(fulladdr).hostname, 1965)) gemsocket.send(bytes(fulladdr + "\r\n", "UTF-8"))