fix v2ray client file download and ss qr create
This commit is contained in:
12
src/client_file.sh
Normal file
12
src/client_file.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
_get_client_file() {
|
||||
local _link="$(cat $v2ray_client_config | tr -d [:space:] | base64 -w0)"
|
||||
local link="https://233boy.github.io/tools/json.html#${_link}"
|
||||
echo
|
||||
echo "---------- V2Ray 客户端配置文件链接 -------------"
|
||||
echo
|
||||
echo -e ${cyan}$link${none}
|
||||
echo
|
||||
echo " V2Ray 客户端使用教程: https://v2ray6.com/post/4/"
|
||||
echo
|
||||
echo
|
||||
}
|
12
src/qr.sh
12
src/qr.sh
@@ -15,3 +15,15 @@ _qr_create() {
|
||||
echo
|
||||
rm -rf /etc/v2ray/vmess_qr.json
|
||||
}
|
||||
_ss_qr() {
|
||||
local ss_link="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#v2ray6.com_ss_${ip}"
|
||||
local link="https://233boy.github.io/tools/qr.html#${ss_link}"
|
||||
echo
|
||||
echo "---------- Shadowsocks 二维码链接 -------------"
|
||||
echo
|
||||
echo -e "$yellow 链接 = $cyan$link$none"
|
||||
echo
|
||||
echo -e " 温馨提示...$red Shadowsocks Win 4.0.6 $none客户端可能无法识别该二维码"
|
||||
echo
|
||||
echo
|
||||
}
|
||||
|
Reference in New Issue
Block a user