install.sh: update ghproxy
This commit is contained in:
parent
403d7a5527
commit
1837e20e69
@ -22,7 +22,7 @@ country_code=$(echo $ip_info | sed -r 's/.*country_code":"([^"]*).*/\1/')
|
|||||||
if [ $country_code = "CN" ]; then
|
if [ $country_code = "CN" ]; then
|
||||||
google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204)
|
google_status=$(curl -I -4 -m 3 -o /dev/null -s -w %{http_code} http://www.google.com/generate_204)
|
||||||
if [ ! $google_status = "204" ];then
|
if [ ! $google_status = "204" ];then
|
||||||
mirror="https://gh.cooluc.com/"
|
mirror="https://hub.gitmirror.com/"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user