Update install.sh

pull/449/head
midoks 2 years ago
parent f2d34e5551
commit 74e63c5bbd
  1. 2
      scripts/install.sh

@ -67,7 +67,7 @@ fi
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
HTTP_PREFIX="https://" HTTP_PREFIX="https://"
LOCAL_ADDR=common LOCAL_ADDR=common
if [ ! -z "$cn" ];then if [ ! -z "$cn" ] && [ "$?" != "0" ] ;then
LOCAL_ADDR=cn LOCAL_ADDR=cn
HTTP_PREFIX="https://ghproxy.com/" HTTP_PREFIX="https://ghproxy.com/"
fi fi

Loading…
Cancel
Save