[PR #3658] [MERGED] Refactor: BBR switching #5501

Closed
opened 2026-10-31 20:47:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3658
Author: @nebulosa2007
Created: 1/9/2026
Status: ✅ Merged
Merged: 1/18/2026
Merged by: @MHSanaei

Base: main ← Head: bbr


📝 Commits (6)

  • 7c9008f feat: improve BBR management with sysctl.d and backup support
  • ac9c703 Merge branch 'MHSanaei:main' into bbr
  • 80952a9 Merge branch 'MHSanaei:main' into bbr
  • cb30820 Merge branch 'MHSanaei:main' into bbr
  • ae5bdf4 Merge branch 'MHSanaei:main' into bbr
  • 5f5d9ff Merge branch 'main' into bbr

📊 Changes

1 file changed (+37 additions, -16 deletions)

View changed files

📝 x-ui.sh (+37 -16)

📄 Description

What is the pull request?

Changes:

  1. Fix: detection of BBR enabled in OS with systemd, they do not have sysctl.conf, instead a configuration file in the /etc/sysctl.d/ folder is used.
  2. Enabling BBR by creating the file /etc/sysctl.d/99-bbr-x-ui.conf in modern OSes with systemd or adding similar lines to /etc/sysctl.conf for others (Alpine, etc.).
  3. Disable BBR and restore the old values for OSes with systemd and pfifo_fast, cubic for other OSes without rebooting.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3658 **Author:** [@nebulosa2007](https://github.com/nebulosa2007) **Created:** 1/9/2026 **Status:** ✅ Merged **Merged:** 1/18/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `bbr` --- ### 📝 Commits (6) - [`7c9008f`](https://github.com/MHSanaei/3x-ui/commit/7c9008f01fc0af161f041d06c3bc571cb2b4d903) feat: improve BBR management with sysctl.d and backup support - [`ac9c703`](https://github.com/MHSanaei/3x-ui/commit/ac9c703c9f58473720b5cfa6a20eaa466e3aa949) Merge branch 'MHSanaei:main' into bbr - [`80952a9`](https://github.com/MHSanaei/3x-ui/commit/80952a9b22427374e89835a23a41a0f7104104db) Merge branch 'MHSanaei:main' into bbr - [`cb30820`](https://github.com/MHSanaei/3x-ui/commit/cb3082014a865879616ea0220a74a015c13639c9) Merge branch 'MHSanaei:main' into bbr - [`ae5bdf4`](https://github.com/MHSanaei/3x-ui/commit/ae5bdf4320b67da6f2b3634b6c51d13a219585ae) Merge branch 'MHSanaei:main' into bbr - [`5f5d9ff`](https://github.com/MHSanaei/3x-ui/commit/5f5d9ff61172951c54a19890986b4a245e0b9273) Merge branch 'main' into bbr ### 📊 Changes **1 file changed** (+37 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `x-ui.sh` (+37 -16) </details> ### 📄 Description ## What is the pull request? Changes: 1. Fix: detection of BBR enabled in OS with systemd, they do not have sysctl.conf, instead a configuration file in the /etc/sysctl.d/ folder is used. 2. Enabling BBR by creating the file /etc/sysctl.d/99-bbr-x-ui.conf in modern OSes with systemd or adding similar lines to /etc/sysctl.conf for others (Alpine, etc.). 3. Disable BBR and restore the old values for OSes with systemd and pfifo_fast, cubic for other OSes without rebooting. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [X] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:24 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5501
No description provided.