diff --git a/scripts/install.sh b/scripts/install.sh index e3c8077ee..85431526d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -67,7 +67,7 @@ fi cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") HTTP_PREFIX="https://" LOCAL_ADDR=common -if [ ! -z "$cn" ];then +if [ ! -z "$cn" ] && [ "$?" != "0" ] ;then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/" fi