From 5fae23798e85f207895136d857cbfc08a75bfdfe Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 15 Jul 2023 23:59:33 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BD=BF=E7=94=A8=20cloudflare=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=9B=BD=E5=86=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index aa59f35..f8fd3d1 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -34,9 +34,9 @@ curl() { is_in_china() { if [ -z $_is_in_china ]; then - # https://geoip.fedoraproject.org/city - # https://geoip.ubuntu.com/lookup - curl -L https://geoip.ubuntu.com/lookup | grep -qw CHN + # https://geoip.fedoraproject.org/city # 不支持 ipv6 + # https://geoip.ubuntu.com/lookup # 不支持 ipv6 + curl -L http://www.cloudflare.com/cdn-cgi/trace | grep -qx 'loc=CN' _is_in_china=$? fi return $_is_in_china