You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix command output, proxy setup, and HTTPS forwarding (#47)
* fix: always pipe command to stdout
* basic fixes
* Fix CONNECT handling in TLS termination path
CONNECT requests coming through TLS termination were incorrectly
forwarded as regular HTTP requests instead of being handled by
handleConnect. This caused 400 errors when clients used CONNECT.
The fix adds proper CONNECT detection in handleDecryptedHTTPS,
matching the behavior in handleHTTP.
* Use http:// for HTTPS_PROXY in unprivileged mode
HTTPS_PROXY should use http:// to establish CONNECT tunnels
to the proxy, not https://. This is the standard approach
for HTTP proxies handling HTTPS traffic via CONNECT.
The proxy will still perform TLS termination on the tunneled
connections for full request visibility.
* Add debugging for TLS connection hangs in CONNECT handling
- Add read timeout to detect clients that don't send HTTP requests
- Add detailed TLS connection state logging
- Better error handling for timeout scenarios
This should help diagnose why CONNECT tunnels hang after TLS handshake.
* Fix SetReadTimeout compilation error
Replace SetReadTimeout (which doesn't exist) with SetReadDeadline.
Also reset the deadline after each successful request to allow
multiple requests on the same TLS connection.
* fix
---------
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
0 commit comments