From b4078daf5301db48de9387c1b27ebeb874607f94 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 12 Jan 2025 22:40:12 -0800 Subject: [PATCH] Update server.py --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index df2d21d..cc4bb61 100644 --- a/server.py +++ b/server.py @@ -37,6 +37,7 @@ def relay(): gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) fulladdr = "gemini://" + url gemsocket = ssl._create_unverified_context().wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname) + print(urlparse(fulladdr).hostname) gemsocket.connect((urlparse(fulladdr).hostname, 1965)) gemsocket.send(bytes("gemini://" + url + "\r\n", "UTF-8")) received = ""