jpillora / chisel

A fast TCP/UDP tunnel over HTTP
MIT License
12.36k stars 1.32k forks source link

Support socks5:// protocol as client proxy protocol #474

Open deviantony opened 6 months ago

deviantony commented 6 months ago

The current version of chisel only allows the client to use socks:// or socks5h:// as proxy protocol:

However, Golang only supports the socks5:// proxy protocol for its HTTP client:

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?