diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 1072c3523..330b7eea5 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -68,9 +68,9 @@ fi # HTTP_PREFIX="https://ghproxy.com/" # fi -cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") HTTP_PREFIX="https://" LOCAL_ADDR=common +cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") if [ ! -z "$cn" ] || [ "$?" != "0" ] ;then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/" diff --git a/scripts/lib.sh b/scripts/lib.sh index bc5a5be77..4224a01a4 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -64,10 +64,9 @@ fi # LOCAL_ADDR=cn # HTTP_PREFIX="https://ghproxy.com/" # fi - -cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") HTTP_PREFIX="https://" LOCAL_ADDR=common +cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") if [ ! -z "$cn" ] || [ "$?" != "0" ] ;then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/"