Skip to content

Commit

Permalink
fix(脚本): 修改默认端口的错误设置
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Oct 19, 2022
1 parent 1717438 commit 146c240
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,8 @@ acmeInstallSSL() {
fi
fi
else
sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 --server "${sslType}" "${installSSLIPv6}" 2>&1 | tee -a /etc/v2ray-agent/tls/acme.log >/dev/null
echoContent green " ---> 生成证书中"
sudo "$HOME/.acme.sh/acme.sh" --issue -d "${tlsDomain}" --standalone -k ec-256 --server "${sslType}" ${installSSLIPv6} 2>&1 | tee -a /etc/v2ray-agent/tls/acme.log >/dev/null
fi
readAcmeTLS
}
Expand All @@ -1193,11 +1194,15 @@ customPortFunction() {
echo
echoContent yellow "请输入自定义端口[例: 2083],自定义端口后只允许使用DNS申请证书,[回车]使用443"
read -r -p "端口:" customPort
if ((customPort >= 1 && customPort <= 65535)); then
checkCustomPort
if [[ -n "${customPort}" ]]; then
if ((customPort >= 1 && customPort <= 65535)); then
checkCustomPort
else
echoContent green " ---> 端口输入错误"
exit
fi
else
echoContent green " ---> 端口输入错误"
exit
echoContent yellow "\n ---> 端口: 443"
fi
fi

Expand Down

0 comments on commit 146c240

Please sign in to comment.