chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Support socks5:// protocol as client proxy protocol

Open deviantony opened this issue 2 years ago • 0 comments

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?

deviantony avatar Dec 06 '23 01:12 deviantony