Skip to Content [alt-c]
In reply to Writing an SNI Proxy in 115 Lines of Go
Thank you for your great explanation. I tried to run it, but got the following error.
2022/01/17 19:35:30 tls: first record does not look like a TLS handshake
If you already know more about this, could you please let me know...?
[What I did]
- Change the port to 44433.
- Send a client request
$ curl -Lv -x http://127.0.0.1:44433 https://example.com
* Trying 127.0.0.1:44433...
* Connected to 127.0.0.1 (127.0.0.1) port 44433 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to example.com:443
CONNECT example.com:443 HTTP/1.1
Host: example.com:443
User-Agent: curl/7.77.0
Proxy-Connection: Keep-Alive
* Proxy CONNECT aborted
* CONNECT phase completed!
* Closing connection 0
- proxy server's log
curl: (56) Proxy CONNECT aborted
Reply
Your comment will be public. To contact me privately, email me. Please keep your comment polite, on-topic, and comprehensible. Your comment may be held for moderation before being published.
Your Name: (Optional; will be published)
Your Email Address: (Optional; will not be published)
Your Website: (Optional; will be published)
>
monospaced
Post a Reply
Your comment will be public. To contact me privately, email me. Please keep your comment polite, on-topic, and comprehensible. Your comment may be held for moderation before being published.