由于Homebrew下载用的是curl, 我这有两种方法让curl走socks5
1
echo 'socks5 = "127.0.0.1:1080"' >> ~/.curlrc
export ALL_PROXY=socks5://127.0.0.1:1080
curl ip.cn
12345
# pip install -U requests[socks]import requestsresp = requests.get('http://go.to', proxies=dict(http='socks5://user:pass@host:port', https='socks5://user:pass@host:port'))
1234
git config --global http.proxy socks5://127.0.0.1:1080git config --global https.proxy socks5://127.0.0.1:1080git config --global --unset http.proxygit config --global --unset https.proxy
youtube-dl -f bestvideo+bestaudio/best --proxy 'socks5://127.0.0.1'
to be continued…
赶紧升级浏览器来访问本站吧!现在就去
×