From cad06425fcfd9039fdeb42b1022c8eb05bdac47f Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 23 Mar 2023 15:24:49 +0800 Subject: [PATCH] Update lib.sh --- scripts/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib.sh b/scripts/lib.sh index f243f99c7..56b8e3764 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -53,7 +53,7 @@ LOCAL_ADDR=common ping -c 1 ipinfo.io > /dev/null 2>&1 if [ "$?" == "0" ];then CN=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") - if [ -z $CN ];then + if [ -z "$CN" ];then LOCAL_ADDR=cn HTTP_PREFIX="https://ghproxy.com/" fi