sslocal -c proxy.json
/etc/polipo/config
socksParentProxy = localhost:1080
socksProxyType = socks5
export HTTP_PROXY=http://127.0.0.1:8123
export HTTPS_PROXY=http://127.0.0.1:8123
~/.curlrc
-x http://127.0.0.1:8123
注意这里不能直接用socks代理,否则会出现 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to chrome-infra-packages.appspot.com:443
为了避免因为下载过慢出现hook timeout,执行下面的命令
curl -s "https://fuchsia.googlesource.com/scripts/+/master/bootstrap?format=TEXT" | base64 --decode > bootstrap
修改boostrap脚本中jiri update行,在后面添加参数 -hook-timeout=120 再执行./bootstrap topaz