diff --git a/install.sh b/install.sh index 2168518..719e27b 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