diff --git a/CHANGELOG.md b/CHANGELOG.md index 704774d..5ba1bfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +2025.01.23 + +- 增加ndpresponder的自动编译,及时更新上游更新。 + 2024.12.31 - 去除无效的源替换,增加PVE国内镜像源的尝试列表不仅限于清华源 diff --git a/README.md b/README.md index b3a501d..7e221ef 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ ## 更新 -2025.01.23 +2025.02.23 -- 增加ndpresponder的自动编译,及时更新上游更新。 +- 去除对 cip.cc 的依赖 [更新日志](CHANGELOG.md) diff --git a/back/fixed_windows.sh b/back/fixed_windows.sh index 20e6536..c66f4b2 100644 --- a/back/fixed_windows.sh +++ b/back/fixed_windows.sh @@ -44,25 +44,6 @@ check_china() { CN=true ;; esac - else - if [[ $? -ne 0 ]]; then - if [[ $(curl -m 6 -s cip.cc) =~ "中国" ]]; then - _yellow "根据cip.cc提供的信息,当前IP可能在中国" - read -e -r -p "是否选用中国镜像完成相关组件安装? [Y/n] " input - case $input in - [yY][eE][sS] | [yY]) - echo "使用中国镜像" - CN=true - ;; - [nN][oO] | [nN]) - echo "不使用中国镜像" - ;; - *) - echo "不使用中国镜像" - ;; - esac - fi - fi fi fi } diff --git a/dockerfiles/build.sh b/dockerfiles/build.sh index 18bcc55..c227671 100644 --- a/dockerfiles/build.sh +++ b/dockerfiles/build.sh @@ -203,25 +203,6 @@ check_china() { CN=true ;; esac - else - if [[ $? -ne 0 ]]; then - if [[ $(curl -m 6 -s cip.cc) =~ "中国" ]]; then - _yellow "根据cip.cc提供的信息,当前IP可能在中国" - read -e -r -p "是否选用中国镜像完成相关组件安装? [Y/n] " input - case $input in - [yY][eE][sS] | [yY]) - echo "使用中国镜像" - CN=true - ;; - [nN][oO] | [nN]) - echo "不使用中国镜像" - ;; - *) - echo "不使用中国镜像" - ;; - esac - fi - fi fi fi } diff --git a/scripts/buildct.sh b/scripts/buildct.sh index 174380f..0dececf 100644 --- a/scripts/buildct.sh +++ b/scripts/buildct.sh @@ -47,13 +47,6 @@ check_china() { if [[ $(curl -m 6 -s https://ipapi.co/json | grep 'China') != "" ]]; then _yellow "根据ipapi.co提供的信息,当前IP可能在中国,使用中国镜像下载" CN=true - else - if [[ $? -ne 0 ]]; then - if [[ $(curl -m 6 -s cip.cc) =~ "中国" ]]; then - _yellow "根据cip.cc提供的信息,当前IP可能在中国,使用中国镜像下载" - CN=true - fi - fi fi fi } diff --git a/scripts/buildct_onlyv6.sh b/scripts/buildct_onlyv6.sh index 1012108..39a8948 100644 --- a/scripts/buildct_onlyv6.sh +++ b/scripts/buildct_onlyv6.sh @@ -62,13 +62,6 @@ check_china() { if [[ $(curl -m 6 -s https://ipapi.co/json | grep 'China') != "" ]]; then _yellow "根据ipapi.co提供的信息,当前IP可能在中国,使用中国镜像下载" CN=true - else - if [[ $? -ne 0 ]]; then - if [[ $(curl -m 6 -s cip.cc) =~ "中国" ]]; then - _yellow "根据cip.cc提供的信息,当前IP可能在中国,使用中国镜像下载" - CN=true - fi - fi fi fi } diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 09e9c46..1d50fa5 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -617,25 +617,6 @@ check_china() { CN=true ;; esac - else - if [[ $? -ne 0 ]]; then - if [[ $(curl -m 6 -s cip.cc) =~ "中国" ]]; then - _yellow "根据cip.cc提供的信息,当前IP可能在中国" - read -e -r -p "是否选用中国镜像完成相关组件安装? [Y/n] " input - case $input in - [yY][eE][sS] | [yY]) - echo "使用中国镜像" - CN=true - ;; - [nN][oO] | [nN]) - echo "不使用中国镜像" - ;; - *) - echo "不使用中国镜像" - ;; - esac - fi - fi fi fi } diff --git a/scripts/ssh_bash.sh b/scripts/ssh_bash.sh index dfb94ba..47db279 100644 --- a/scripts/ssh_bash.sh +++ b/scripts/ssh_bash.sh @@ -42,13 +42,6 @@ check_china() { if [[ $(curl -m 6 -s https://ipapi.co/json | grep 'China') != "" ]]; then echo "根据ipapi.co提供的信息,当前IP可能在中国" CN=true - else - if [[ $? -ne 0 ]]; then - if [[ $(curl -m 6 -s cip.cc) =~ "中国" ]]; then - echo "根据cip.cc提供的信息,当前IP可能在中国" - CN=true - fi - fi fi fi }