Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:56:30 -08:00
parent 6fd5181a28
commit b88bae32b3

View file

@ -98,7 +98,7 @@ def relay():
try:
gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
fulladdr = "gemini://" + url + ("?" + queries if queries != None else "")
contx = ssl._create_unverified_context(ssl.Purpose.SERVER_AUTH)
contx = ssl._create_unverified_context()
if certfile:
contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem");
contx.verify_mode = ssl.CERT_OPTIONAL