From 1a63d3abfef0de2248937d1964a2f747e31d6dd3 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 12 Jan 2025 22:39:23 -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 795cfe9..df2d21d 100644 --- a/server.py +++ b/server.py @@ -36,7 +36,7 @@ def relay(): try: gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) fulladdr = "gemini://" + url - gemsocket = ssl.create_default_context().wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname) + gemsocket = ssl._create_unverified_context().wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname) gemsocket.connect((urlparse(fulladdr).hostname, 1965)) gemsocket.send(bytes("gemini://" + url + "\r\n", "UTF-8")) received = ""