From caaa2c971f1b7ef31253b0cc5c3141f56aaa2a4d Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Sun, 6 Jun 2021 11:09:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8DgR?= =?UTF-8?q?PC=E6=B7=BB=E5=8A=A0=E3=80=81=E5=88=A0=E9=99=A4=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E6=97=B6=E6=97=A0=E6=B3=95=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ad6358d..34cdb3c 100644 --- a/install.sh +++ b/install.sh @@ -2778,6 +2778,14 @@ addUser() { echo "${vmessWsResult}" | jq . >${configPath}05_VMess_WS_inbounds.json fi + if echo ${currentInstallProtocolType} | grep -q 5; then + local vmessUsers="${users//\"flow\":\"xtls-rprx-direct\"\,/}" + + local vlessGRPCResult + vlessGRPCResult=$(jq -r '.inbounds[0].settings.clients += ['${vmessUsers}']' ${configPath}06_VLESS_gRPC_inbounds.json) + echo "${vlessGRPCResult}" | jq . >${configPath}06_VLESS_gRPC_inbounds.json + fi + if echo ${currentInstallProtocolType} | grep -q 4; then local trojanResult trojanResult=$(jq -r '.password += ['${trojanGoUsers}']' ${configPath}../../trojan/config_full.json) @@ -2825,6 +2833,12 @@ removeUser() { echo "${vmessWSResult}" | jq . >${configPath}05_VMess_WS_inbounds.json fi + if echo ${currentInstallProtocolType} | grep -q 5; then + local vlessGRPCResult + vlessGRPCResult=$(jq -r 'del(.inbounds[0].settings.clients['${delUserIndex}'])' ${configPath}06_VLESS_gRPC_inbounds.json) + echo "${vlessGRPCResult}" | jq . >${configPath}06_VLESS_gRPC_inbounds.json + fi + if echo ${currentInstallProtocolType} | grep -q 4; then local trojanResult trojanResult=$(jq -r 'del(.password['${delUserIndex}'])' ${configPath}../../trojan/config_full.json) @@ -3765,7 +3779,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.4.38" + echoContent green "当前版本:v2.4.39" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus