This commit is contained in:
Super Manito
2025-09-28 05:11:58 +08:00
parent 4c7860d48c
commit 902d10f2f1

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
## Author: SuperManito ## Author: SuperManito
## Modified: 2025-09-13 ## Modified: 2025-09-27
## License: MIT ## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors ## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn ## Website: https://linuxmirrors.cn
@@ -1119,7 +1119,6 @@ function choose_mirrors() {
for ((i = 0; i < ${#mirror_list_extranet[@]}; i++)); do for ((i = 0; i < ${#mirror_list_extranet[@]}; i++)); do
if [[ "${SOURCE}" == "${mirror_list_extranet[i]}" ]]; then if [[ "${SOURCE}" == "${mirror_list_extranet[i]}" ]]; then
intranet_source="${mirror_list_intranet[i]}" intranet_source="${mirror_list_intranet[i]}"
ONLY_HTTP="true" # 强制使用 HTTP 协议
break break
else else
continue continue
@@ -1131,6 +1130,7 @@ function choose_mirrors() {
interactive_select_boolean "${BOLD}${ask_text}${PLAIN}" interactive_select_boolean "${BOLD}${ask_text}${PLAIN}"
if [[ "${_SELECT_RESULT}" == "false" ]]; then if [[ "${_SELECT_RESULT}" == "false" ]]; then
SOURCE="${intranet_source}" SOURCE="${intranet_source}"
ONLY_HTTP="true" # 强制使用 HTTP 协议
[[ "${PURE_MODE}" != "true" ]] && echo -e "\n$WARN 已切换至内网专用地址,仅限在特定环境下使用!" [[ "${PURE_MODE}" != "true" ]] && echo -e "\n$WARN 已切换至内网专用地址,仅限在特定环境下使用!"
fi fi
else else
@@ -1141,6 +1141,7 @@ function choose_mirrors() {
[Yy] | [Yy][Ee][Ss]) ;; [Yy] | [Yy][Ee][Ss]) ;;
[Nn] | [Nn][Oo]) [Nn] | [Nn][Oo])
SOURCE="${intranet_source}" SOURCE="${intranet_source}"
ONLY_HTTP="true" # 强制使用 HTTP 协议
[[ "${PURE_MODE}" != "true" ]] && echo -e "\n$WARN 已切换至内网专用地址,仅限在特定环境下使用!" [[ "${PURE_MODE}" != "true" ]] && echo -e "\n$WARN 已切换至内网专用地址,仅限在特定环境下使用!"
;; ;;
*) *)