feat(脚本): 添加v2rayN hysteria端口跳跃

pull/717/head
mack-a 2023-06-25 10:49:33 +08:00
parent 745497e9a0
commit baac790563
1 changed files with 5 additions and 3 deletions

View File

@ -4036,10 +4036,12 @@ EOF
hysteriaEmail=$(echo "${email}" | awk -F "[-]" '{print $1}')_hysteria hysteriaEmail=$(echo "${email}" | awk -F "[-]" '{print $1}')_hysteria
echoContent yellow " ---> Hysteria(TLS)" echoContent yellow " ---> Hysteria(TLS)"
local clashMetaPortTmp="port: ${hysteriaPort}" local clashMetaPortTmp="port: ${hysteriaPort}"
local v2rayNPortHopping=
local mport= local mport=
if [[ -n "${portHoppingStart}" ]]; then if [[ -n "${portHoppingStart}" ]]; then
mport="mport=${portHoppingStart}-${portHoppingEnd}&" mport="mport=${portHoppingStart}-${portHoppingEnd}&"
clashMetaPortTmp="ports: ${portHoppingStart}-${portHoppingEnd}" clashMetaPortTmp="ports: ${portHoppingStart}-${portHoppingEnd}"
v2rayNPortHopping=",${portHoppingStart}-${portHoppingEnd}"
fi fi
echoContent green " hysteria://${currentHost}:${hysteriaPort}?${mport}protocol=${hysteriaProtocol}&auth=${id}&peer=${currentHost}&insecure=0&alpn=h3&upmbps=${hysteriaClientUploadSpeed}&downmbps=${hysteriaClientDownloadSpeed}#${hysteriaEmail}\n" echoContent green " hysteria://${currentHost}:${hysteriaPort}?${mport}protocol=${hysteriaProtocol}&auth=${id}&peer=${currentHost}&insecure=0&alpn=h3&upmbps=${hysteriaClientUploadSpeed}&downmbps=${hysteriaClientDownloadSpeed}#${hysteriaEmail}\n"
cat <<EOF >>"/etc/v2ray-agent/subscribe_local/default/${user}" cat <<EOF >>"/etc/v2ray-agent/subscribe_local/default/${user}"
@ -4048,7 +4050,7 @@ EOF
echoContent yellow " ---> v2rayN(hysteria+TLS)" echoContent yellow " ---> v2rayN(hysteria+TLS)"
cat <<EOF >"/etc/v2ray-agent/hysteria/conf/client.json" cat <<EOF >"/etc/v2ray-agent/hysteria/conf/client.json"
{ {
"server": "${currentHost}:${hysteriaPort}", "server": "${currentHost}:${hysteriaPort}${v2rayNPortHopping}",
"protocol": "${hysteriaProtocol}", "protocol": "${hysteriaProtocol}",
"up_mbps": ${hysteriaClientUploadSpeed}, "up_mbps": ${hysteriaClientUploadSpeed},
"down_mbps": ${hysteriaClientDownloadSpeed}, "down_mbps": ${hysteriaClientDownloadSpeed},
@ -7791,7 +7793,7 @@ menu() {
cd "$HOME" || exit cd "$HOME" || exit
echoContent red "\n==============================================================" echoContent red "\n=============================================================="
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v2.9.22" echoContent green "当前版本v2.9.23"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c" echoContent green "描述:八合一共存脚本\c"
showInstallStatus showInstallStatus
@ -7800,7 +7802,7 @@ menu() {
echoContent red " " echoContent red " "
echoContent green "推广请联系TG@mackaff\n" echoContent green "推广请联系TG@mackaff\n"
echoContent green "VPS选购攻略https://www.v2ray-agent.com/archives/1679975663984" 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 "==============================================================" echoContent red "=============================================================="
if [[ -n "${coreInstallType}" ]]; then if [[ -n "${coreInstallType}" ]]; then
echoContent yellow "1.重新安装" echoContent yellow "1.重新安装"