[PR #3507] [CLOSED] feat: add per-client speed limit feature for inbound connections #5427

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3507
Author: @harryngne
Created: 9/18/2025
Status: ❌ Closed

Base: main ← Head: feat/speed-limit-client


📝 Commits (3)

  • 0cabf4a Fix: Shadowrocket link using base64 encoding
  • 3675a72 chore: update url
  • 31d090f feat: add per-client speed limit support for inbound connections

📊 Changes

10 files changed (+373 additions, -45 deletions)

View changed files

📝 web/assets/js/model/inbound.js (+53 -24)
📝 web/assets/js/subscription.js (+41 -12)
📝 web/html/form/client.html (+21 -0)
📝 web/html/subscription.html (+7 -6)
📝 web/service/inbound.go (+13 -0)
📝 web/service/xray.go (+230 -3)
📝 web/translation/translate.en_US.toml (+2 -0)
📝 web/translation/translate.vi_VN.toml (+2 -0)
📝 web/translation/translate.zh_CN.toml (+2 -0)
📝 web/translation/translate.zh_TW.toml (+2 -0)

📄 Description

What is the pull request?

This pull request introduces the feature to set independent upload/download speed limits per client in inbound configurations. It enables administrators to control bandwidth usage on a per-user basis, improving traffic management and resource allocation.

Key changes include:

  • Parsing and applying client-specific speed limits from the inbound settings.
  • Modifying Xray configuration generation to embed speed limit policies per client.
  • Adding necessary logging for speed limit application.
  • Ensuring compatibility with existing client enable/disable logic.

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/3507 **Author:** [@harryngne](https://github.com/harryngne) **Created:** 9/18/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/speed-limit-client` --- ### 📝 Commits (3) - [`0cabf4a`](https://github.com/MHSanaei/3x-ui/commit/0cabf4aba9758cd7becf631f526bd8008494fae8) Fix: Shadowrocket link using base64 encoding - [`3675a72`](https://github.com/MHSanaei/3x-ui/commit/3675a720da0e2f2726b2d3285ab60a2581aca5d4) chore: update url - [`31d090f`](https://github.com/MHSanaei/3x-ui/commit/31d090fc7efca629a194a5237ff4c81ab72e0f2a) feat: add per-client speed limit support for inbound connections ### 📊 Changes **10 files changed** (+373 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/model/inbound.js` (+53 -24) 📝 `web/assets/js/subscription.js` (+41 -12) 📝 `web/html/form/client.html` (+21 -0) 📝 `web/html/subscription.html` (+7 -6) 📝 `web/service/inbound.go` (+13 -0) 📝 `web/service/xray.go` (+230 -3) 📝 `web/translation/translate.en_US.toml` (+2 -0) 📝 `web/translation/translate.vi_VN.toml` (+2 -0) 📝 `web/translation/translate.zh_CN.toml` (+2 -0) 📝 `web/translation/translate.zh_TW.toml` (+2 -0) </details> ### 📄 Description ## What is the pull request? This pull request introduces the feature to set independent upload/download speed limits per client in inbound configurations. It enables administrators to control bandwidth usage on a per-user basis, improving traffic management and resource allocation. Key changes include: - Parsing and applying client-specific speed limits from the inbound settings. - Modifying Xray configuration generation to embed speed limit policies per client. - Adding necessary logging for speed limit application. - Ensuring compatibility with existing client enable/disable logic. ## Which part of the application is affected by the change? - [x] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] 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:46:53 +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#5427
No description provided.