Update gost.sh

This commit is contained in:
starry
2025-09-21 16:07:44 +08:00
committed by GitHub
parent 1ec4d2f4ac
commit 6816c6a3e9

View File

@@ -74,11 +74,11 @@ function Install_ct() {
gh_proxy_prefix="" gh_proxy_prefix=""
if [[ "$loc" == "CN" ]]; then if [[ "$loc" == "CN" ]]; then
echo -e "检测到服务器位于中国大陆GitHub 下载可能较慢。" echo -e "检测到服务器位于中国大陆GitHub 下载可能较慢。"
read -e -p "是否使用 GitHub 加速代理 [y/n]:" use_proxy read -e -p "是否使用 GitHub 国内加速源 [y/n]:" use_proxy
[[ -z $use_proxy ]] && use_proxy="y" [[ -z $use_proxy ]] && use_proxy="y"
if [[ $use_proxy == [Yy] ]]; then if [[ $use_proxy == [Yy] ]]; then
read -e -p "请输入加速域名(回车使用内置加速域名https://gh-proxy.com:" input_proxy read -e -p "请输入加速域名(回车使用默认https://gh-proxy.com:" input_proxy
[[ -z $input_proxy ]] && input_proxy="https://gh-proxy.com" [[ -z $input_proxy ]] && input_proxy="https://gh-proxy.com"
gh_proxy_prefix="${input_proxy}/" gh_proxy_prefix="${input_proxy}/"
fi fi