Update lib.sh

pull/393/head
midoks 2 years ago
parent 87098cff95
commit 90b1d88111
  1. 2
      scripts/lib.sh

@ -50,7 +50,7 @@ fi
# cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") # cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
HTTP_PREFIX="https://" HTTP_PREFIX="https://"
LOCAL_ADDR=common LOCAL_ADDR=common
ping -c 1 github.com > /dev/null 2>&1 ping -c 1 pypi.python.org > /dev/null 2>&1
if [ "$?" != "0" ];then if [ "$?" != "0" ];then
LOCAL_ADDR=cn LOCAL_ADDR=cn
HTTP_PREFIX="https://ghproxy.com/" HTTP_PREFIX="https://ghproxy.com/"

Loading…
Cancel
Save