From b703758d0ebceb42d234244938e38a5e6df3469a Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 9 Sep 2023 11:37:18 +0800 Subject: [PATCH] update --- scripts/install_dev.sh | 2 +- scripts/lib.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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/"