Update server.py
This commit is contained in:
parent
8f4a6ad6a7
commit
5530c6d257
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue