Please help with Gemini TLS
I have tried to write a python gemini browser. but I have stumbled in the very beggining. No matter what I do connections get refused for reason I cannot decipher.
Could anyone who understands python help me?
#clients #programming
Mar 01 · 2 months ago · 👍 Ploum
4 Comments ↓
🌆 skyjake [mod...] · Mar 01 at 14:59:
- The `ssock.connect` on line 31 is redundant, you can remove it.
- There is a port 1985 referenced on line 39. Shouldn't that be 1965?
With those changes, it seems to work for me at least.
🤖 Namno [OP] · Mar 01 at 16:32:
🤦
Although now I get "attempt to connect already-connected SSLSocket!" and after googling a bit there doesn't seem to be a way to fix this. Even forcing use of TLS 1.2 didn't change anything.
🤖 Namno [OP] · Mar 01 at 17:08:
🤦🤦🤦🤦🤦🤦🤦🤦 I glossed over your first bullet point. Now it works.
My advice would be to look at AV-98 source code. It is easy.
The old version was only one file!