This project relies on https://github.com/mwitkow/go-http-dialer
You need to write the proxy list into redis in advance, and maintain the proxy life cycle by yourself
Redis proxy data format is zset
The service fetches a proxy from redis each time and accesses the final destination address
If you don't need to use the proxy pool to access the final target, please set the USE_PROXY_POOL parameter of .env to a value other than 1
Copy example.env to .env and modify the .env parameters
git clone git@github.com:anjingjingan/httpProxyTunnel.git
cp example.env.env
cd httpProxyTunnel
go build .
需要事先把代理列表写入 redis ,并自行维护代理生命周期
redis 代理数据格式为 zset
服务每次从 redis 取一个代理,访问最终目标地址
如果不需要使用代理池访问最终目标,请把 .env 的 USE_PROXY_POOL 参数设置为不是 1 的其它值
复制 example.env 为 .env ,并修改 .env 参数
git clone git@github.com:anjingjingan/httpProxyTunnel.git
cp example.env .env
cd httpProxyTunnel
go build .