pull/457/head
midoks 2 years ago
parent be43b537cc
commit e9eab63e99
  1. 4
      scripts/update.sh
  2. 4
      scripts/update_dev.sh

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

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

Loading…
Cancel
Save