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