feat(订阅链接): 增加json

pull/534/merge
mack-a 2020-05-26 17:55:33 +08:00
parent 95c04aa8f4
commit e2eeeeffb1
1 changed files with 5 additions and 1 deletions

View File

@ -323,8 +323,12 @@ qrEncode(){
path=`echo ${user}|jq .streamSettings.wsSettings.path`
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 ${qrCodeBase64}|sed 's/ //g'`
echoContent green " 通用链接--->"
echoContent green " 通用vmess链接--->"
echoContent green vmess://${qrCodeBase64}
echoContent green " 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}'"}'
# | qrencode -t UTF8
# echo ${qrCodeBase64}
}