Update server.py
This commit is contained in:
parent
ea68273dc3
commit
5f08c85a0b
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def relay():
|
||||||
contx.verify_mode = ssl.CERT_NONE
|
contx.verify_mode = ssl.CERT_NONE
|
||||||
if certfile:
|
if certfile:
|
||||||
contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem");
|
contx.load_cert_chain(certfile=homefolder + "/certs/" + certfile + "-chain.pem", keyfile=homefolder + "/certs/" + certfile + "-privkey.pem");
|
||||||
gemsocket = contx.wrap_socket(gsocket)
|
gemsocket = contx.wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname)
|
||||||
gemsocket.connect((urlparse(fulladdr).hostname, 1965))
|
gemsocket.connect((urlparse(fulladdr).hostname, 1965))
|
||||||
gemsocket.send(bytes(fulladdr + "\r\n", "UTF-8"))
|
gemsocket.send(bytes(fulladdr + "\r\n", "UTF-8"))
|
||||||
received = ""
|
received = ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue