Mac OSX Terminal Using shadowsocks as proxy
Opened this issue · 0 comments
AndreGeng commented
一直以为mac的terminal会自动用自己挂了的shadowsocks代理。
直到昨天想重装下homebrew, 那速度说多了都是泪。。
为了让terminal通过shadowsocks作代理,可以运行
export ALL_PROXY=socks5://127.0.0.1:1086
验证下
设置之前
$ curl ip.cn
当前 IP: *.*.*.* 来自: 上海市 联通
设置之后
$ curl ip.cn
当前 IP: *.*.*.* 来自: 俄罗斯
$ curl cip.cc
IP : *.*.*.*
地址 : 美国
运营商 :
数据二 : 俄罗斯
数据三 : 美国加利福尼亚洛杉矶
URL : http://www.cip.cc/*.*.*.*
$ curl cip.cc
IP : *.*.*.*
地址 : ** 上海
运营商 : 联通
数据二 : 上海市
数据三 : **上海上海市 | 联通
URL : http://www.cip.cc/*.*.*.*
速度快了不止一个档次