From ad72e0ebfcfbe141e27cd28f91115498ec688791 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Thu, 11 Jun 2020 15:54:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a9d6864..8b07296 100644 --- a/install.sh +++ b/install.sh @@ -348,8 +348,10 @@ initV2RayConfig(){ if [[ ! -z "$1" ]] then sed -i "s/alone/${1}/g" `grep alone -rl /etc/v2ray/config.json` + else + sed -i "s/654765fe-5fb1-271f-7c3f-18ed82827f72/${uuid}/g" `grep 654765fe-5fb1-271f-7c3f-18ed82827f72 -rl /etc/v2ray/config.json` fi - sed -i "s/654765fe-5fb1-271f-7c3f-18ed82827f72/${uuid}/g" `grep 654765fe-5fb1-271f-7c3f-18ed82827f72 -rl /etc/v2ray/config.json` + } qrEncode(){ user=`cat /etc/v2ray/config.json|jq .inbounds[0]`