core: 使用支持 ipv6 的国内 github 代理

This commit is contained in:
bin456789 2023-09-21 00:12:35 +08:00
parent 7b453004dc
commit 4f9c2a7415
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -904,10 +904,13 @@ case "$basearch" in
"aarch64") basearch_alt=arm64 ;; "aarch64") basearch_alt=arm64 ;;
esac 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 is_in_china; then
confhome=https://gitee.com/bin456789/reinstall/raw/main confhome=https://ghps.cc/$confhome
fi fi
# 以下目标系统不需要进入alpine # 以下目标系统不需要进入alpine