fix(脚本): 修改设置自定义端口后添加伪装站302重定向失败的问题

pull/578/head
mack-a 2023-02-16 16:24:18 +08:00
parent 4644130207
commit d8051f189f
1 changed files with 3 additions and 3 deletions

View File

@ -3453,10 +3453,10 @@ removeNginx302() {
# 检查302是否成功
checkNginx302() {
local domain302Status=
domain302Status=$(curl -s "https://${currentHost}")
domain302Status=$(curl -s "https://${currentHost}:${currentPort}")
if echo "${domain302Status}" | grep -q "302"; then
local domain302Result=
domain302Result=$(curl -L -s "https://${currentHost}")
domain302Result=$(curl -L -s "https://${currentHost}:${currentPort}")
if [[ -n "${domain302Result}" ]]; then
echoContent green " ---> 302重定向设置成功"
exit 0
@ -5513,7 +5513,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者:mack-a"
echoContent green "当前版本:v2.7.1"
echoContent green "当前版本:v2.7.2"
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c"
showInstallStatus