From a9aa53e78d8167741fb5f70094a5c93ac0ab0fd9 Mon Sep 17 00:00:00 2001 From: wuredi002 <466114995@qq.com> Date: Sun, 4 Oct 2026 06:49:15 +0000 Subject: [PATCH] Main --- VERSION | 2 +- lib/03-system.sh | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/VERSION b/VERSION index c442f5e..26aaba0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.22 +1.2.0 diff --git a/lib/03-system.sh b/lib/03-system.sh index 7709a09..f64f763 100644 --- a/lib/03-system.sh +++ b/lib/03-system.sh @@ -40,25 +40,6 @@ install_dependencies() { esac } -enable_bbr() { - [[ "$OS_TYPE" == "alpine" ]] && return 0 - command -v sysctl >/dev/null 2>&1 || return 0 - - if [[ "$(sysctl -n net.ipv4.tcp_congestion_control 2>/dev/null)" == "bbr" ]]; then - return 0 - fi - - info "[系统] 尝试启用 BBR..." - if ! cat >/etc/sysctl.d/99-xray-installer-bbr.conf </dev/null 2>&1 || sysctl -p /etc/sysctl.d/99-xray-installer-bbr.conf >/dev/null 2>&1 -} - prepare_system() { [[ -n "${OS_TYPE:-}" ]] || check_os [[ -n "${XRAY_ASSET:-}" ]] || detect_arch