chisel
chisel copied to clipboard
Support socks5:// protocol as client proxy protocol
The current version of chisel only allows the client to use socks:// or socks5h:// as proxy protocol:
- https://github.com/jpillora/chisel/blob/v1.9.1/client/client.go#L273-L279
However, Golang only supports the socks5:// proxy protocol for its HTTP client:
- https://github.com/golang/go/blob/go1.21.5/src/net/http/transport.go#L1645
This leads to a conflicting situation when using a Go program that uses both the standard HTTP client and the chisel client and needs to go through a SOCKS proxy (such as the portainer agent).
Was there any reason to only allow for the socks:// instead of socks5:// in the chisel client?