From f29749f0c2ad5d0638ef83a6899e0fa7bee18235 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Fri, 5 Jun 2020 15:00:58 +0800 Subject: [PATCH] =?UTF-8?q?ws=20tls=20quantumult=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=8AVMESS=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8fe0d23..21d3d9b 100644 --- a/install.sh +++ b/install.sh @@ -540,7 +540,7 @@ nginx_conf_add() { # Config for 0-RTT in TLSv1.3 ssl_early_data on; ssl_stapling on; - ssl_stapling_verify on; + ssl_stapling_verify on; add_header Strict-Transport-Security "max-age=31536000"; location /ray/ @@ -553,7 +553,7 @@ nginx_conf_add() { proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host \$http_host; - + # Config for 0-RTT in TLSv1.3 proxy_set_header Early-Data \$ssl_early_data; } @@ -674,6 +674,18 @@ vmess_qr_link_image() { } >>"${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() { grep "$1" $v2ray_qr_config_file | awk -F '"' '{print $4}' }