tls type 判断优化

pull/355/head
wulabing 2019-12-30 16:59:41 +08:00
parent 44c46e447f
commit 2da2d52386
1 changed files with 2 additions and 2 deletions

View File

@ -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(){