Skip to content

Commit

Permalink
add: show qrcode
Browse files Browse the repository at this point in the history
  • Loading branch information
233boy committed Jun 6, 2022
1 parent 9b158e4 commit fcf613d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/qr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit fcf613d

Please sign in to comment.