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