Update server.py
This commit is contained in:
parent
26f72c6fb0
commit
1a63d3abfe
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def relay():
|
|||
try:
|
||||
gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
fulladdr = "gemini://" + url
|
||||
gemsocket = ssl.create_default_context().wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname)
|
||||
gemsocket = ssl._create_unverified_context().wrap_socket(gsocket, server_hostname=urlparse(fulladdr).hostname)
|
||||
gemsocket.connect((urlparse(fulladdr).hostname, 1965))
|
||||
gemsocket.send(bytes("gemini://" + url + "\r\n", "UTF-8"))
|
||||
received = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue