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 = ""