您的位置:首页 > 其它

How to use lantern proxy from mac terminal?

2017-02-27 18:27 633 查看
$ curl https://gist.github.com/wjwwood/4237236/raw/e357f1b9fa8b26d02ed84f411d5b5eb7446c68c5/pkg_config_fix.patch curl: (7) Failed to connect to gist.github.com port 443: Operation timed out$ curl --proxy 127.0.0.1:64145 https://gist.github.com/wjwwood/4237236/raw/e357f1b9fa8b26d02ed84f411d5b5eb7446c68c5/pkg_config_fix.patch works$ cat !$cat ~/.curlrcproxy = 127.0.0.1:64145 https://github.com/getlantern/lantern/issues/3341 You can make a alias in your ~/.bashrc file :
alias curl="curl -x <proxy_host>:<proxy_port>"
Another solution is to use (maybe the better solution) the 
~/.curlrc
 file(create it if it does not exist) :
proxy = <proxy_host>:<proxy_port>
 http://stackoverflow.com/questions/7559103/how-to-setup-curl-to-permanently-use-a-proxy 
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: