From c42161fceb1bd33f400506cb3b4f5c53156c9b27 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Fri, 5 Jun 2020 15:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E9=93=BE=E6=8E=A5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 21d3d9b..12ae6b8 100644 --- a/install.sh +++ b/install.sh @@ -686,6 +686,20 @@ vmess_quan_link_image() { } >>"${v2ray_info_file}" } +vmess_link_image_choice() { + echo "请选择生成的链接种类" + echo "1: V2RayNG/V2RayN" + echo "2: Quantaumlt" + read -rp "请输入:" link_version + [[ -z ${link_version} ]] && link_version=1 + if [[ $link_version == 1 ]]; then + vmess_qr_link_image + elif [[ $link_version == 2 ]]; then + vmess_quan_link_image + else + vmess_qr_link_image + fi +} info_extraction() { grep "$1" $v2ray_qr_config_file | awk -F '"' '{print $4}' } @@ -858,7 +872,7 @@ install_v2ray_ws_tls() { nginx_systemd vmess_qr_config_tls_ws basic_information - vmess_qr_link_image + vmess_link_image_choice tls_type show_information start_process_systemd @@ -1009,7 +1023,7 @@ menu() { ;; 10) basic_information - vmess_qr_link_image + vmess_link_image_choice show_information ;; 11)