Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:48:53 -08:00
parent 8f4a6ad6a7
commit 5530c6d257

View file

@ -101,8 +101,8 @@ def relay():
contx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
if certfile:
contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem");
context.load_verify_locations(cafile=ssl.CERT_AU);
context.verify_mode = ssl.CERT_OPTIONAL
contx.load_verify_locations(cafile=ssl.CERT_AU);
contx.verify_mode = ssl.CERT_OPTIONAL
contx.check_hostname = False;
gemsocket = contx.wrap_socket(gsocket)
gemsocket.connect((urlparse(fulladdr).hostname, 1965))