Browse Source

auto set GHPROXY for china user

pull/4316/head
user.tax 3 years ago
committed by any
parent
commit
8d676013b0
  1. 6
      acme.sh

6
acme.sh

@ -6,7 +6,11 @@ PROJECT_NAME="acme.sh"
PROJECT_ENTRY="acme.sh"
PROJECT="https://github.com/acmesh-official/$PROJECT_NAME"
if ! curl -I --connect-timeout 1 -m 3 -s https://t.co > /dev/null ;then
GHPROXY=https://ghproxy.com/
fi
PROJECT="${GHPROXY}https://github.com/acmesh-official/$PROJECT_NAME"
DEFAULT_INSTALL_HOME="$HOME/.$PROJECT_NAME"

Loading…
Cancel
Save