Update server.py
This commit is contained in:
parent
7fe51dbd1b
commit
ea2cd988ab
1 changed files with 1 additions and 1 deletions
|
@ -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_default_context(ssl.Purpose.CLIENT_AUTH)
|
||||
contx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
|
||||
if certfile:
|
||||
contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem");
|
||||
contx.verify_mode = ssl.CERT_OPTIONAL
|
||||
|
|
Loading…
Add table
Reference in a new issue