From baac790563496f8790760397157782a7253c342c Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Sun, 25 Jun 2023 10:49:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0v?= =?UTF-8?q?2rayN=20hysteria=E7=AB=AF=E5=8F=A3=E8=B7=B3=E8=B7=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index aa26b8b..2a8b334 100644 --- a/install.sh +++ b/install.sh @@ -4036,10 +4036,12 @@ EOF hysteriaEmail=$(echo "${email}" | awk -F "[-]" '{print $1}')_hysteria echoContent yellow " ---> Hysteria(TLS)" local clashMetaPortTmp="port: ${hysteriaPort}" + local v2rayNPortHopping= local mport= if [[ -n "${portHoppingStart}" ]]; then mport="mport=${portHoppingStart}-${portHoppingEnd}&" clashMetaPortTmp="ports: ${portHoppingStart}-${portHoppingEnd}" + v2rayNPortHopping=",${portHoppingStart}-${portHoppingEnd}" fi echoContent green " hysteria://${currentHost}:${hysteriaPort}?${mport}protocol=${hysteriaProtocol}&auth=${id}&peer=${currentHost}&insecure=0&alpn=h3&upmbps=${hysteriaClientUploadSpeed}&downmbps=${hysteriaClientDownloadSpeed}#${hysteriaEmail}\n" cat <>"/etc/v2ray-agent/subscribe_local/default/${user}" @@ -4048,7 +4050,7 @@ EOF echoContent yellow " ---> v2rayN(hysteria+TLS)" cat <"/etc/v2ray-agent/hysteria/conf/client.json" { - "server": "${currentHost}:${hysteriaPort}", + "server": "${currentHost}:${hysteriaPort}${v2rayNPortHopping}", "protocol": "${hysteriaProtocol}", "up_mbps": ${hysteriaClientUploadSpeed}, "down_mbps": ${hysteriaClientDownloadSpeed}, @@ -7791,7 +7793,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.9.22" + echoContent green "当前版本:v2.9.23" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus @@ -7800,7 +7802,7 @@ menu() { echoContent red " " echoContent green "推广请联系TG:@mackaff\n" echoContent green "VPS选购攻略:https://www.v2ray-agent.com/archives/1679975663984" - echoContent green "freevod免费的观影网站:https://www.v2ray-agent.com/archives/1682647927103" + echoContent green "RN低价套餐,年付最低10美元:https://www.v2ray-agent.com/archives/racknerdtao-can-zheng-li-nian-fu-10mei-yuan" echoContent red "==============================================================" if [[ -n "${coreInstallType}" ]]; then echoContent yellow "1.重新安装"