From 5f08c85a0b3f80594e5533fb8051f436be1c83d1 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 21:19:51 -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 b2404c8..6548f84 100644 --- a/server.py +++ b/server.py @@ -103,7 +103,7 @@ def relay(): contx.verify_mode = ssl.CERT_NONE if certfile: contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem"); - gemsocket = contx.wrap_socket(gsocket) + gemsocket = contx.wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname) gemsocket.connect((urlparse(fulladdr).hostname, 1965)) gemsocket.send(bytes(fulladdr + "\r\n", "UTF-8")) received = ""