mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5574] [Feature]: Optimization Proposal #3893
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3893
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FPu3EpOBIIIuK on GitHub (Jun 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5574
Is your feature request related to a problem?
Not all clients in the subscription need routing rules.
Describe the solution you'd like
Hello, I've encountered an issue where not all clients in the subscription require routing. I would like to add an option in the client settings that disables the addition of routing to the subscription. I am using the Happ subscription.
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 25, 2026):
The request is to add a per-client toggle that suppresses Happ routing delivery in the subscription response. This is currently not possible — routing is a panel-wide setting with no client-level override.
What the code confirms
subEnableRoutingandsubRoutingRulesinSettingService(internal/web/service/setting.go, lines 79, 80, 704–705).SUBControllerreceives these global values and writes identicalRouting-EnableandRoutingHTTP response headers for every client's subscription request (internal/sub/controller.go, lines 194, 378, 395, 435–437).Clientmodel (internal/database/model/model.go, line 590) and the persistedClientRecordstruct (line 611) have no field for per-client routing behavior.What an implementation would require
Client/ClientRecord(e.g.,DisableRouting bool) and a database migration.SUBControllerso the per-client value can override the globalsubEnableRoutingflag for a specific request.There is a related but distinct closed request, #4479, which proposed per-inbound routing overrides rather than per-client ones. If you are willing to implement this, contributions via pull request following the existing patterns in
internal/sub/andinternal/database/model/model.gowould be the right starting point.This reply was generated automatically; a maintainer may follow up.