From fcf613dbee4d8cf44717f28b2936853818303590 Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Mon, 6 Jun 2022 20:17:20 +0800 Subject: [PATCH] add: show qrcode --- src/qr.sh | 12 +++++++++--- v2ray.sh | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/qr.sh b/src/qr.sh index a96d114..0d05d95 100644 --- a/src/qr.sh +++ b/src/qr.sh @@ -6,8 +6,11 @@ _qr_create() { fi local link="https://233boy.github.io/tools/qr.html#${vmess}" echo - echo "---------- V2Ray 二维码链接 适用于 V2RayNG v0.4.1+ / Kitsunebi -------------" + echo "---------- V2Ray 二维码 -------------" echo + qrencode -s 1 -m 1 -t ansi "${vmess}" + echo + echo "如果无法正常显示二维码,请使用下面的链接来生成二维码:" echo -e ${cyan}$link${none} echo echo @@ -23,9 +26,12 @@ _ss_qr() { local ss_link="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#233v2.com_ss_${ip}" local link="https://233boy.github.io/tools/qr.html#${ss_link}" echo - echo "---------- Shadowsocks 二维码链接 -------------" + echo "---------- Shadowsocks 二维码 -------------" + echo + qrencode -s 1 -m 1 -t ansi "${ss_link}" echo - echo -e "$yellow 链接 = $cyan$link$none" + echo "如果无法正常显示二维码,请使用下面的链接来生成二维码:" + echo -e ${cyan}$link${none} echo echo -e " 温馨提示...$red Shadowsocks Win 4.0.6 $none客户端可能无法识别该二维码" echo diff --git a/v2ray.sh b/v2ray.sh index a82c7e7..45e775c 100644 --- a/v2ray.sh +++ b/v2ray.sh @@ -10,7 +10,7 @@ none='\e[0m' # Root [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 -_version="v3.56" +_version="v3.57" cmd="apt-get"