Update server.py

This commit is contained in:
Nova Cat 2025-01-14 21:19:51 -08:00
parent ea68273dc3
commit 5f08c85a0b

View file

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