fix(脚本): 修改设置自定义端口后添加伪装站302重定向失败的问题
parent
4644130207
commit
d8051f189f
|
@ -3453,10 +3453,10 @@ removeNginx302() {
|
||||||
# 检查302是否成功
|
# 检查302是否成功
|
||||||
checkNginx302() {
|
checkNginx302() {
|
||||||
local domain302Status=
|
local domain302Status=
|
||||||
domain302Status=$(curl -s "https://${currentHost}")
|
domain302Status=$(curl -s "https://${currentHost}:${currentPort}")
|
||||||
if echo "${domain302Status}" | grep -q "302"; then
|
if echo "${domain302Status}" | grep -q "302"; then
|
||||||
local domain302Result=
|
local domain302Result=
|
||||||
domain302Result=$(curl -L -s "https://${currentHost}")
|
domain302Result=$(curl -L -s "https://${currentHost}:${currentPort}")
|
||||||
if [[ -n "${domain302Result}" ]]; then
|
if [[ -n "${domain302Result}" ]]; then
|
||||||
echoContent green " ---> 302重定向设置成功"
|
echoContent green " ---> 302重定向设置成功"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -5513,7 +5513,7 @@ menu() {
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
echoContent red "\n=============================================================="
|
echoContent red "\n=============================================================="
|
||||||
echoContent green "作者:mack-a"
|
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 "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue