From 1fb4d0090a4c26a46418458bda9f788f19d90551 Mon Sep 17 00:00:00 2001 From: yunshu <33997505+hello-yunshu@users.noreply.github.com> Date: Mon, 31 Mar 2025 23:01:34 +0800 Subject: [PATCH] Fix rewrite process --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d9b6b59..23f57e7 100644 --- a/install.sh +++ b/install.sh @@ -35,7 +35,7 @@ OK="${Green}[OK]${Font}" Error="${RedW}[$(gettext "错误")]${Font}" Warning="${RedW}[$(gettext "警告")]${Font}" -shell_version="2.5.0" +shell_version="2.5.1" shell_mode="$(gettext "未安装")" tls_mode="None" ws_grpc_mode="None" @@ -983,7 +983,7 @@ modify_nginx_origin_conf() { modify_nginx_port() { if [[ ${tls_mode} == "Reality" ]] && [[ ${reality_add_nginx} == "on" ]]; then - sed -i "s/^\( *\)listen.*/\1listen ${port} reuseport so_keepalive=on backlog=65535;/" ${nginx_conf} + sed -i "s/^\( *\)listen.*so_keepalive=on.*/\1listen ${port} reuseport so_keepalive=on backlog=65535;/" ${nginx_conf} judge "Nginx port $(gettext "修改")" elif [[ ${tls_mode} == "TLS" ]]; then sed -i "2s/^\( *\).*ssl reuseport;$/\1listen ${port} ssl reuseport;/" ${nginx_conf}