From 38b33ba129827bf13937dc84138106c0a453345a Mon Sep 17 00:00:00 2001 From: mango Date: Sat, 14 Feb 2026 21:31:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A7BBR=E9=85=8D=E7=BD=AE=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8D=87=E7=BA=A7=E4=B8=BA=E5=AE=8C=E6=95=B4TCP?= =?UTF-8?q?=E8=B0=83=E4=BC=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ss-rust.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ss-rust.sh b/ss-rust.sh index 3111242..fdf44ce 100644 --- a/ss-rust.sh +++ b/ss-rust.sh @@ -391,9 +391,12 @@ setup_bbr() { # 检测是否已启用 local cc=$(sysctl -n net.ipv4.tcp_congestion_control 2>/dev/null) local qd=$(sysctl -n net.core.default_qdisc 2>/dev/null) + if [[ "$cc" == "bbr" && "$qd" == "fq" ]] && grep -q "TCP Tuning" /etc/sysctl.conf 2>/dev/null; then + info "BBR + TCP 完整调优已启用,无需重复配置" + return 0 + fi if [[ "$cc" == "bbr" && "$qd" == "fq" ]]; then - info "BBR 已启用 (congestion=$cc, qdisc=$qd)" - grep -q "BBR Blast" /etc/sysctl.conf 2>/dev/null && info "BBR Blast 配置已存在" && return 0 + info "检测到 BBR 已启用,升级为完整 TCP 调优..." fi # 检测系统