mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-06 01:10:27 +08:00
bug fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2025-09-26
|
## Modified: 2025-09-28
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -705,7 +705,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
|
||||||
@@ -717,6 +716,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
|
||||||
@@ -727,6 +727,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 已切换至内网专用地址,仅限在特定环境下使用!"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user