mirror of https://github.com/wulabing/Xray_onekey
ws tls quantumult扫码添加及VMESS连接
parent
090bd04025
commit
f29749f0c2
12
install.sh
12
install.sh
|
@ -674,6 +674,18 @@ vmess_qr_link_image() {
|
||||||
} >>"${v2ray_info_file}"
|
} >>"${v2ray_info_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vmess_quan_link_image() {
|
||||||
|
echo "$(info_extraction '\"ps\"') = vmess, $(info_extraction '\"add\"'), \
|
||||||
|
$(info_extraction '\"port\"'), chacha20-ietf-poly1305, "\"$(info_extraction '\"id\"')\"", over-tls=true, \
|
||||||
|
certificate=1, obfs=ws, obfs-path="\"$(info_extraction '\"path\"')\"", " > /tmp/vmess_quan.tmp
|
||||||
|
vmess_link="vmess://$(base64 -w 0 /tmp/vmess_quan.tmp)"
|
||||||
|
{
|
||||||
|
echo -e "$Red 二维码: $Font"
|
||||||
|
echo -n "${vmess_link}" | qrencode -o - -t utf8
|
||||||
|
echo -e "${Red} URL导入链接:${vmess_link} ${Font}"
|
||||||
|
} >>"${v2ray_info_file}"
|
||||||
|
}
|
||||||
|
|
||||||
info_extraction() {
|
info_extraction() {
|
||||||
grep "$1" $v2ray_qr_config_file | awk -F '"' '{print $4}'
|
grep "$1" $v2ray_qr_config_file | awk -F '"' '{print $4}'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue