如果本地 shadowsock 的端口是 1080 ,在 command prompt 敲入:
set HTTP_PROXY=http://127.0.0.1:1080
set HTTPS_PROXY=http://127.0.0.1:1080
即可, 效果维持到关闭此 command prompt 窗口为止
测试, curl www.google.com , 如果能得到返回, 说明成功
来源 : https://github.com/shadowsocks/shadowsocks-windows/issues/1489
如果是 mac 电脑
设置 :
1 |
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; |
取消设置 :
1 |
unset {http,https,ftp}_proxy |