Update server.py

This commit is contained in:
Nova Cat 2025-01-14 20:49:11 -08:00
parent 5530c6d257
commit 7fe51dbd1b

View file

@ -101,7 +101,6 @@ 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");
contx.load_verify_locations(cafile=ssl.CERT_AU);
contx.verify_mode = ssl.CERT_OPTIONAL
contx.check_hostname = False;
gemsocket = contx.wrap_socket(gsocket)