From b734fc6e1dadf66ec6b42b1f4153df095254bac3 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Mon, 23 Mar 2026 00:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20tproxy=20=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E5=86=B2=E7=AA=81=E6=A3=80=E6=9F=A5=E9=81=97=E6=BC=8F?= =?UTF-8?q?=20UDP=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tproxy_port (redir_port + 1) 在 TProxy 模式下同时用于 TCP 和 UDP, 端口冲突检查应使用 all 而非 tcp --- scripts/menu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/menu.sh b/scripts/menu.sh index 04d03d18..13fb6a95 100644 --- a/scripts/menu.sh +++ b/scripts/menu.sh @@ -62,7 +62,7 @@ checkport() { fi if [ "$conflict_found" -eq 0 ]; then - conflict_info=$(check_port_with_info "$((redir_port + 1))" tcp) + conflict_info=$(check_port_with_info "$((redir_port + 1))" all) [ $? -ne 0 ] && conflict_found=1 && conflict_port="$((redir_port + 1))" fi