这是一个超简单的 Socks5 代理转换成 HTTP 代理的小工具。
# Required Go 1.17+
go install github.com/mritd/s2h@master
docker pull mritd/s2h
# -l 本地 HTTP 监听地址
# -s 远程 Socks5 服务器地址
s2h -l 127.0.0.1:8081 -s 127.0.0.1:1080
docker run --rm -it --network=host mritd/s2h -l 127.0.0.1:8081 -s 127.0.0.1:1080