From dd6f2c0abff50dd0559ca6f38d91de56b24d04b7 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Thu, 24 Jun 2021 10:14:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BD=93=E5=90=8C=E6=97=B6=E5=AE=89=E8=A3=85trojan=E5=92=8CVLE?= =?UTF-8?q?SS=E6=97=B6=E5=AF=BC=E8=87=B4trojan=E3=80=81=E4=BC=AA=E7=AB=99?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/install.sh b/install.sh index cd7b093..ebbe74b 100644 --- a/install.sh +++ b/install.sh @@ -685,8 +685,8 @@ server { } } EOF - elif ! echo "${selectCustomInstallType}" |grep -q 4; then + else cat <>/etc/nginx/conf.d/alone.conf server { listen 127.0.0.1:31302 http2; @@ -1642,7 +1642,7 @@ EOF if echo "${selectCustomInstallType}" | grep -q 4 || [[ "$1" == "all" ]]; then # 回落trojan-go - fallbacksList='{"dest":31296,"xver":0}' + fallbacksList='{"dest":31296,"xver":0},{"alpn":"h2","dest":31302,"xver":0}' fi # VLESS_WS_TLS @@ -1805,7 +1805,7 @@ EOF ], "decryption": "none", "fallbacks": [ - ${fallbacksList} + ${fallbacksList} ] }, "streamSettings": { @@ -1870,13 +1870,13 @@ EOF } EOF fi - - if echo "${selectCustomInstallType}" | grep -q 5 || [[ "$1" == "all" ]];then - echo >/dev/null - elif [[ -f "/etc/v2ray-agent/v2ray/conf/02_VLESS_TCP_inbounds.json" ]] && echo "${selectCustomInstallType}" | grep -q 4;then - # "h2", - sed -i '/\"h2\",/d' $(grep "\"h2\"," -rl /etc/v2ray-agent/v2ray/conf/02_VLESS_TCP_inbounds.json) - fi +# +# if echo "${selectCustomInstallType}" | grep -q 5 || [[ "$1" == "all" ]];then +# echo >/dev/null +# elif [[ -f "/etc/v2ray-agent/v2ray/conf/02_VLESS_TCP_inbounds.json" ]] && echo "${selectCustomInstallType}" | grep -q 4;then +# # "h2", +# sed -i '/\"h2\",/d' $(grep "\"h2\"," -rl /etc/v2ray-agent/v2ray/conf/02_VLESS_TCP_inbounds.json) +# fi } # 初始化Xray 配置文件 @@ -2182,12 +2182,12 @@ EOF ] } EOF - if echo "${selectCustomInstallType}" | grep -q 5 || [[ "$1" == "all" ]];then - echo >/dev/null - elif [[ -f "/etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json" ]] && echo "${selectCustomInstallType}" | grep -q 4;then - # "h2", - sed -i '/\"h2\",/d' $(grep "\"h2\"," -rl /etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json) - fi +# if echo "${selectCustomInstallType}" | grep -q 5 || [[ "$1" == "all" ]];then +# echo >/dev/null +# elif [[ -f "/etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json" ]] && echo "${selectCustomInstallType}" | grep -q 4;then +# # "h2", +# sed -i '/\"h2\",/d' $(grep "\"h2\"," -rl /etc/v2ray-agent/xray/conf/02_VLESS_TCP_inbounds.json) +# fi } # 初始化Trojan-Go配置 @@ -3954,7 +3954,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.5.7" + echoContent green "当前版本:v2.5.8" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus