mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 修改302重定向检测逻辑
parent
9924cd31f4
commit
8e952eff22
14
install.sh
14
install.sh
|
@ -5656,12 +5656,12 @@ checkNginx302() {
|
|||
local domain302Status=
|
||||
domain302Status=$(curl -s "https://${currentHost}:${currentPort}")
|
||||
if echo "${domain302Status}" | grep -q "302"; then
|
||||
local domain302Result=
|
||||
domain302Result=$(curl -L -s "https://${currentHost}:${currentPort}")
|
||||
if [[ -n "${domain302Result}" ]]; then
|
||||
echoContent green " ---> 302重定向设置完毕"
|
||||
exit 0
|
||||
fi
|
||||
# local domain302Result=
|
||||
# domain302Result=$(curl -L -s "https://${currentHost}:${currentPort}")
|
||||
# if [[ -n "${domain302Result}" ]]; then
|
||||
echoContent green " ---> 302重定向设置完毕"
|
||||
exit 0
|
||||
# fi
|
||||
fi
|
||||
echoContent red " ---> 302重定向设置失败,请仔细检查是否和示例相同"
|
||||
backupNginxConfig restoreBackup
|
||||
|
@ -9711,7 +9711,7 @@ menu() {
|
|||
cd "$HOME" || exit
|
||||
echoContent red "\n=============================================================="
|
||||
echoContent green "作者:mack-a"
|
||||
echoContent green "当前版本:v3.3.21"
|
||||
echoContent green "当前版本:v3.3.22"
|
||||
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||
echoContent green "描述:八合一共存脚本\c"
|
||||
showInstallStatus
|
||||
|
|
Loading…
Reference in New Issue