Update server.py
This commit is contained in:
parent
9c83722a83
commit
1718891a06
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def relay():
|
|||
title = "Something went wrong..."
|
||||
try:
|
||||
gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
gemsocket = ssl.wrap_socket(gsocket)
|
||||
gemsocket = ssl.create_default_context().wrap_socket(gsocket)
|
||||
gemsocket.connect((url, 1965))
|
||||
gemsocket.send(bytes("gemini://" + url + "\r\n", "UTF-8"))
|
||||
received = ""
|
||||
|
|
Loading…
Add table
Reference in a new issue