Skip to content

Commit

Permalink
fix(脚本): 修复sing-box安装Reality后无法启动问题、修复端口无法通过校验问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizard89 authored Jul 6, 2024
1 parent 04612e4 commit fb792ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1288,8 +1288,10 @@ checkPortOpen() {
local domain=$2
local checkPortOpenResult=
allowPort "${port}"

if [[ -z "${btDomain}" ]]; then

handleNginx stop
# 初始化nginx配置
touch ${nginxConfigPath}checkPortOpen.conf
cat <<EOF >${nginxConfigPath}checkPortOpen.conf
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb792ba

Please sign in to comment.