Update install.sh

This commit is contained in:
midoks
2023-09-15 13:23:28 +08:00
parent 6b85710504
commit be43b537cc
+1 -1
View File
@@ -70,7 +70,7 @@ 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/"
fi