Skip to content

Commit

Permalink
fix(脚本): 修改hysteria端口校验问题、修改重新安装不重新启动hysteria的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Nov 9, 2022
1 parent 34563fb commit 52bb06f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -5220,6 +5219,7 @@ hysteriaCoreInstall() {
installHysteria 1
initHysteriaConfig 2
installHysteriaService 3
handleHysteria stop
handleHysteria start
showAccounts 5
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 52bb06f

Please sign in to comment.