2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

feat: 优化 bbr 检查

This commit is contained in:
耗子
2024-04-26 15:44:40 +08:00
parent 002db34b4d
commit 6beda2ea12

View File

@@ -111,7 +111,7 @@ Prepare_System() {
fi
# 自动开启 BBR
isBBRSupported=$(sysctl net.ipv4.tcp_available_congestion_control | grep -c bbr)
isBBRSupported=$(ls -l /lib/modules/*/kernel/net/ipv4/tcp_bbr.ko.xz | grep -c bbr)
if [ "${isBBRSupported}" != "0" ]; then
qdisc=$(sysctl net.core.default_qdisc | awk '{print $3}')
echo "net.core.default_qdisc=${qdisc}" >> /etc/sysctl.conf