下载
https://github.com/cyfdecyf/cow/releases
windows
打开 rc.txt
在项目的配置文件中配置监听和代理
| listen = http://127.0.0.1:7777proxy = socks5://127.0.0.1:1080
 
 | 
设置环境变量
// 之后设置环境变量
| set http_proxy=http://127.0.0.1:7777set https_proxy=http://127.0.0.1:7777
 
 | 
| export http_proxy=http://127.0.0.1:7777export https_proxy=http://127.0.0.1:7777
 
 | 
| Windows系统(git + ss):
 复制代码
 设置代理 http/https协议(clone https://前缀的repo会走ss)
 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
 复制代码
 或者直接在 .gitconfig 文件中加上:
 
 [http]
 proxy = http://127.0.0.1:1080
 sslVerify = false
 [https]
 proxy = https://127.0.0.1:1080
 Update(Win10):
 
 ssr配合cow可以解决go get的问题。(ssr全局模式,vscode里不用设置代理,.gitignore里也不用设置代理。)
 
 cow目录中有个rc.txt文件,打开后删除全部内容,然后添加两行:
 
 listen = http://127.0.0.1:7777
 proxy = socks5://127.0.0.1:1080
 最后在环境变量里加上2个变量:
 
 export http_proxy='http://127.0.0.1:7777'
 export https_proxy='http://127.0.0.1:7777'
 启动ssr,运行cow-taskbar.exe,然后go get吧!
 
 |