From ac70ab720649d0eb64583a328123e2c5c4010fca Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Tue, 12 May 2026 20:02:59 +0800 Subject: [PATCH] fix: sync naive firewall ports for both TCP and UDP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: 修复 naive 防火墙端口未同时同步 TCP 和 UDP --- sing-box.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index 1c339d9..408c9f9 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # 当前脚本版本号 -VERSION='v1.3.11 (2026.05.06)' +VERSION='v1.3.11 (2026.05.12)' # Github 反代加速代理 GITHUB_PROXY=('https://hub.glowp.xyz/' 'https://proxy.vvvv.ee/') @@ -2145,6 +2145,10 @@ collect_exposed_ports() { *hysteria2_inbounds.json|*tuic_inbounds.json ) append_unique_port EXPOSED_UDP_PORTS "$PORT" ;; + *naive_inbounds.json ) + append_unique_port EXPOSED_TCP_PORTS "$PORT" + append_unique_port EXPOSED_UDP_PORTS "$PORT" + ;; *vmess-ws_inbounds.json|*vless-ws-tls_inbounds.json ) [ "$HAS_NGINX" = false ] && append_unique_port EXPOSED_TCP_PORTS "$PORT" ;; @@ -2353,6 +2357,10 @@ sync_firewall_rules() { *hysteria2_inbounds.json|*tuic_inbounds.json ) append_unique_port EXPOSED_UDP_PORTS "$PORT" ;; + *naive_inbounds.json ) + append_unique_port EXPOSED_TCP_PORTS "$PORT" + append_unique_port EXPOSED_UDP_PORTS "$PORT" + ;; *vmess-ws_inbounds.json|*vless-ws-tls_inbounds.json ) [ "$HAS_NGINX" = false ] && append_unique_port EXPOSED_TCP_PORTS "$PORT" ;; @@ -5128,4 +5136,4 @@ elif [ "$IS_FAST_INSTALL" = 'is_fast_install' ]; then else menu_setting menu -fi \ No newline at end of file +fi