From 1718891a0660ea4f6838a0f1d7e34d1e959b7997 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 12 Jan 2025 22:32:57 -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 28f1d7e..a80053f 100644 --- a/server.py +++ b/server.py @@ -34,7 +34,7 @@ def relay(): title = "Something went wrong..." try: gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - gemsocket = ssl.wrap_socket(gsocket) + gemsocket = ssl.create_default_context().wrap_socket(gsocket) gemsocket.connect((url, 1965)) gemsocket.send(bytes("gemini://" + url + "\r\n", "UTF-8")) received = ""