mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #6938] [Feature]: specific routes for users, instead of global (Happ) #4588
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#4588
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 @RainNHard on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6938
Is your feature request related to a problem?
It would be great to be able to give a specific user a different route list instead of the global route for happ. Currently, it is only possible to transmit one list of routes to everyone as a global one.
"
Routing rules
Paste a ready happ:// deeplink or one permanent HTTPS URL returning a deeplink or JSON. The panel refreshes remote rules in the background and keeps the last valid value, so subscription requests never wait for the source. (Happ only)
"
Describe the solution you'd like
Please add a button in Panel settings, subscription (custom routing)
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 (Oct 25, 2026):
You're right: today the panel has a single Happ routing profile, and every subscriber gets the same one. There is no per-client or per-subscription override, so this is a genuine feature request, not a bug.
How it works now
subRoutingRules(internal/web/service/setting.go:117, read byGetSubRoutingRules()atsetting.go:941). It is loaded once into the subscription server (internal/sub/sub.go:217,WithSUBRoutingRules(SubRoutingRules)atsub.go:376).internal/sub/controller.go:518, and the other two are atcontroller.go:860andcontroller.go:928:ApplyCommonHeadersthen writes it out as theRoutingheader (controller.go:994-995). Nothing in that path looks at which client or subId is asking.{...}are rendered only for the title, support URL, profile URL and announce text (internal/sub/placeholders.go:90-105). The routing source is passed through unrendered, so you can't use one HTTPS URL that returns different rules for different subIds.What the feature would need (for the maintainer)
internal/database/db.go.ApplyCommonHeaders, fall back to the globalsubRoutingRuleswhen the client has no override.internal/web/job/remote_routing_job.go:20) only refreshes the single global source. It would also have to cache and refresh every distinct per-client URL.I found no earlier issue asking for this. #3988 (the original Happ header integration) is related but different.
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.