
Homebrew设置socks5
由于Homebrew下载用的是curl, 我这有两种方法让curl走socks5
1
|
echo 'socks5 = "127.0.0.1:1080"' >> ~/.curlrc
|
1
|
export ALL_PROXY=socks5://127.0.0.1:1080
|
python requests走socks5
1 2 3 4 5
|
import requests resp = requests.get('http://go.to',
|
git走socks5
1 2 3 4
|
git config --global http.proxy socks5://127.0.0.1:1080 git config --global https.proxy socks5://127.0.0.1:1080 git config --global --unset http.proxy git config --global --unset https.proxy
|
youtube-dl走socks5
1
|
youtube-dl -f bestvideo+bestaudio/best --proxy 'socks5://127.0.0.1'
|
to be continued…
近期评论