mirror of https://github.com/wulabing/Xray_onekey
tls type 判断优化
parent
44c46e447f
commit
2da2d52386
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue