From 64b06e36059642aa3ddae8763fe041f380e5144a Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 7 Apr 2023 11:29:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=88=96=E8=80=85=E4=B8=AA=E6=80=A7=E5=8C=96?= =?UTF-8?q?=E5=AE=89=E8=A3=85=20reality=E6=97=B6=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E8=B7=9F=E9=9A=8F=20VLESS+tls=5Fvision?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index db1ab95..11e0bbf 100644 --- a/install.sh +++ b/install.sh @@ -5966,8 +5966,11 @@ initRealityPort() { realityPort=${currentRealityPort} fi fi - if [[ -z "${realityPort}" ]]; then - echoContent yellow "请输入端口" + # todo 读取到VLESS_TLS_Vision端口,直接使用。这里可能有歧义 + if [[ -n "${port}" ]]; then + realityPort=${port} + elif [[ -z "${realityPort}" ]]; then + echoContent yellow "请输入端口[建议443]" read -r -p "端口:" realityPort if [[ -n "${realityPort}" && "${currentRealityPort}" == "${realityPort}" ]]; then handleXray stop @@ -5981,6 +5984,7 @@ initRealityPort() { fi fi fi + if [[ -z "${realityPort}" ]]; then initRealityPort else @@ -6102,7 +6106,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.7.29_reality_beta" + echoContent green "当前版本:v2.7.30_reality_beta" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus