Update server.py

This commit is contained in:
Nova Cat 2025-01-12 22:32:57 -08:00
parent 9c83722a83
commit 1718891a06

View file

@ -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 = ""