From 4f9c2a741567fe5353e5ea004c834bac0b20a221 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 21 Sep 2023 00:12:35 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BD=BF=E7=94=A8=E6=94=AF=E6=8C=81=20?= =?UTF-8?q?ipv6=20=E7=9A=84=E5=9B=BD=E5=86=85=20github=20=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index dc15954..cf9df44 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -904,10 +904,13 @@ case "$basearch" in "aarch64") basearch_alt=arm64 ;; esac -# 国内使用 gitee -if [ "$confhome" = https://raw.githubusercontent.com/bin456789/reinstall/main ] && +# 设置国内代理 +# gitee 不支持ipv6 +# jsdelivr 有12小时缓存 +# https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js#L31 +if [[ "$confhome" == http*://raw.githubusercontent.com/* ]] && is_in_china; then - confhome=https://gitee.com/bin456789/reinstall/raw/main + confhome=https://ghps.cc/$confhome fi # 以下目标系统不需要进入alpine