From 52bb06fbf10054d3222120fc60951e1e7e0edd96 Mon Sep 17 00:00:00 2001 From: mack-a Date: Wed, 9 Nov 2022 14:10:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9hy?= =?UTF-8?q?steria=E7=AB=AF=E5=8F=A3=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=81=E4=BF=AE=E6=94=B9=E9=87=8D=E6=96=B0=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E4=B8=8D=E9=87=8D=E6=96=B0=E5=90=AF=E5=8A=A8hysteria=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 2168518a..719e27ba 100644 --- a/install.sh +++ b/install.sh @@ -2156,12 +2156,11 @@ initHysteriaPort() { echoContent yellow "请输入Hysteria端口[例: 10000],不可与其他服务重复" read -r -p "端口:" hysteriaPort fi - if [[ -z ${hysteriaPort} ]]; then - echoContent red "\n ---> 端口不可为空" + echoContent red " ---> 端口不可为空" initHysteriaPort "$2" - elif ((customPort >= 1 && customPort <= 65535)); then - echoContent red "\n ---> 端口不合法" + elif ((hysteriaPort < 1 || hysteriaPort > 65535)); then + echoContent red " ---> 端口不合法" initHysteriaPort "$2" fi allowPort "${hysteriaPort}" @@ -5220,6 +5219,7 @@ hysteriaCoreInstall() { installHysteria 1 initHysteriaConfig 2 installHysteriaService 3 + handleHysteria stop handleHysteria start showAccounts 5 } @@ -5398,7 +5398,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.6.7" + echoContent green "当前版本:v2.6.8" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus