support vless url

This commit is contained in:
233boy
2021-05-14 19:01:45 +08:00
parent bf04951379
commit e8339d0652
2 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,9 @@
_qr_create() {
local vmess="vmess://$(cat /etc/v2ray/vmess_qr.json | base64 -w 0)"
if [[ $v2ray_transport == 33 ]]; then
local vmess="$(cat /etc/v2ray/vmess_qr.json)"
else
local vmess="vmess://$(cat /etc/v2ray/vmess_qr.json | base64 -w 0)"
fi
local link="https://233boy.github.io/tools/qr.html#${vmess}"
echo
echo "---------- V2Ray 二维码链接 适用于 V2RayNG v0.4.1+ / Kitsunebi -------------"