diff --git a/install.sh b/install.sh index bb64fbc..3b44acf 100644 --- a/install.sh +++ b/install.sh @@ -355,7 +355,7 @@ readNginxSubscribe() { subscribePort=$(grep "listen" "${nginxConfigPath}subscribe.conf" | awk '{print $2}') subscribeDomain=$(grep "server_name" "${nginxConfigPath}subscribe.conf" | awk '{print $2}') subscribeDomain=${subscribeDomain//;/} - if [[ "${subscribeDomain}" != "${currentHost}" ]]; then + if [[ -n "${currentHost}" && "${subscribeDomain}" != "${currentHost}" ]]; then subscribePort= subscribeType= else @@ -1288,8 +1288,10 @@ checkPortOpen() { local domain=$2 local checkPortOpenResult= allowPort "${port}" + if [[ -z "${btDomain}" ]]; then + handleNginx stop # 初始化nginx配置 touch ${nginxConfigPath}checkPortOpen.conf cat <${nginxConfigPath}checkPortOpen.conf @@ -9240,7 +9242,7 @@ menu() { echoContent red "\n==============================================================" echoContent green "原作者:mack-a" echoContent green "作者:Wizard89" - echoContent green "当前版本:v3.1.2" + echoContent green "当前版本:v3.1.3" echoContent green "Github:https://github.com/Wizard89/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus