在线客服

微信
扫一扫联系我

教程中心

Images

如何将Socks代理转Http代理

2023-05-27 18:05:48

安装 polipo

sudo port install polipo

快速使用

$ polipo socksParentProxy=localhost:1080

配置文件方式启用

# vi ~/.poliporcsocksParentProxy = “127.0.0.1:1080″
socksProxyType = socks5
proxyAddress = "::0"        # both IPv4 and IPv6# or IPv4 only# proxyAddress = "0.0.0.0"proxyPort = 8123

运行

$ polipo -c ~/.poliporc

测试

$ curl --proxy http://127.0.0.1:8123 https://www.google.com

配置开机自启动