ws tls quantumult扫码添加及VMESS连接

pull/315/head
wulabing 2020-06-05 15:00:58 +08:00
parent 090bd04025
commit f29749f0c2
1 changed files with 14 additions and 2 deletions

View File

@ -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}'
} }