Update install_dev.sh
This commit is contained in:
parent
56b728601b
commit
89c529f44c
|
|
@ -71,7 +71,7 @@ fi
|
|||
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
|
||||
HTTP_PREFIX="https://"
|
||||
LOCAL_ADDR=common
|
||||
if [ ! -z "$cn" ];then
|
||||
if [ ! -z "$cn" ] && [ "$?" != "0" ];then
|
||||
LOCAL_ADDR=cn
|
||||
HTTP_PREFIX="https://ghproxy.com/"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue