From 2da2d5238603d207e7e741d38e1970d1a94eec44 Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Mon, 30 Dec 2019 16:59:41 +0800 Subject: [PATCH] =?UTF-8?q?tls=20type=20=E5=88=A4=E6=96=AD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d3118e7..083a2d5 100644 --- a/install.sh +++ b/install.sh @@ -626,7 +626,7 @@ judge "Nginx systemd ServerFile 添加" } tls_type(){ - if [[ -f "/etc/nginx/sbin/nginx" ]] && [[ -f "$nginx_conf" ]];then + if [[ -f "/etc/nginx/sbin/nginx" ]] && [[ -f "$nginx_conf" ]] && [[ "$shell_mode" == "ws" ]];then echo "请选择支持的 TLS 版本(default:1):" echo "1: TLS1.1 TLS1.2 and TLS1.3" echo "2: TLS1.2 and TLS1.3" @@ -646,7 +646,7 @@ tls_type(){ systemctl restart nginx judge "Nginx 重启" else - echo -e "${Error} ${RedBG} Nginx 或 配置文件不存在,请正确安装脚本后执行${Font}" + echo -e "${Error} ${RedBG} Nginx 或 配置文件不存在 或当前安装版本为 h2 ,请正确安装脚本后执行${Font}" fi } show_access_log(){