ss.sh
#!/bin/env bash
BASEDIR=$(dirname "$0")
cd $BASEDIR
disable_proxy()
{
git config --global --unset https.proxy
}
trap disable_proxy INT
git config --global https.proxy http://127.0.0.1:1080
ss-local -c ./config.json
config.json
{
"server":"domain.name",
"server_port": port,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "password",
"timeout": 600,
"method": "chacha20-ietf-poly1305"
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章