From d30a7e0200891f202167b45977b09f662fca4185 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 5 Jun 2020 14:43:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E8=A7=A3=E6=9E=90dns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 1afee2e..d94d6e7 100644 --- a/install.sh +++ b/install.sh @@ -320,6 +320,7 @@ qrEncode(){ id=`echo ${user}|jq .settings.clients[0].id` aid=`echo ${user}|jq .settings.clients[0].alterId` host="$1" + add="$1" path=`echo ${user}|jq .streamSettings.wsSettings.path` echoContent red '是否使用DNS智能解析进行自定义CDN IP ?,请选择⬇️' echoContent yellow ' 1.使用 ' @@ -327,17 +328,17 @@ qrEncode(){ read dnsProxy if [[ "${dnsProxy}" = "1" ]] then - host="domain04.qiu4.ml" + add="domain04.qiu4.ml" fi echoContent yellow "客户端链接--->\n" - qrCodeBase64=`echo -n '{"port":"443","ps":"'${ps}'","tls":"tls","id":'"${id}"',"aid":"64","v":"2","host":"'${host}'","type":"none","path":'${path}',"net":"ws","add":"'${host}'"}'|sed 's#/#\\\/#g'|base64` + qrCodeBase64=`echo -n '{"port":"443","ps":"'${ps}'","tls":"tls","id":'"${id}"',"aid":"64","v":"2","host":"'${host}'","type":"none","path":'${path}',"net":"ws","add":"'${add}'"}'|sed 's#/#\\\/#g'|base64` qrCodeBase64=`echo ${qrCodeBase64}|sed 's/ //g'` echoContent red "通用vmess链接--->" echoContent green " vmess://${qrCodeBase64}\n" echo vmess://${qrCodeBase64} > /etc/v2ray/usersv2ray.conf echoContent red "json--->" - echoContent green ' {"port":"443","ps":"'${ps}'","tls":"tls","id":'"${id}"',"aid":"64","v":"2","host":"'${host}'","type":"none","path":'${path}',"net":"ws","add":"'${host}'"}\n' + echoContent green ' {"port":"443","ps":"'${ps}'","tls":"tls","id":'"${id}"',"aid":"64","v":"2","host":"'${host}'","type":"none","path":'${path}',"net":"ws","add":"'${add}'"}\n' # | qrencode -t UTF8 # echo ${qrCodeBase64}