问题
发现使用Homebrew报错:
LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to XXXX
原因没法富强,更新地址访问不了,搜索了一下,都是让切回国内的镜像源的,但是并不想这么做...
一是因为有可能不稳定,其次是万一其它功能更新也出现同样问题就会比较麻烦,需要一劳永逸。
解决
-
先给Astrill打开Sharing功能
记住端口3213
- 修改~/.zshrc,添加
alias goproxy='export http_proxy=http://127.0.0.1:3213 https_proxy=http://127.0.0.1:3213'
alias disproxy='unset http_proxy https_proxy'
source ~/.zshrc
- 利用goproxy及disproxy开关,可以正常更新了
4.给git也加上代理
git config --global http.proxy http://localhost:3213
git config --global https.proxy https://localhost:3213
网友评论