mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5521] [Feature]: Add custom group inbound selection - first inbound sub #3853
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#3853
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 @Morteza820 on GitHub (Jun 23, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5521
Is your feature request related to a problem?
dear sanaei,
thanks for your fantastic effort and your brillient project.
I would like to ask you to add custom inbound selection feature
its like for example we set 5 diffrent inbounds as a one group and when we want to select inbounds in client erea , we select that one group option to add those 5 inbounds only with one click and no need to click 5 inbounds one by one...
i know there is attach option with selection option but adding group inbounds with one click make its better when we want to creat new client.
the second thing is when we set to show remaining days or traffic in client's subscription, it apears in first inbound which we added to client's sub and its not good looking... can we have a unique inbounds as first inbounds in subscription client for only showing details and not work as inbound ?
God bless you
BR,
Describe the solution you'd like
dear sanaei,
thanks for your fantastic effort and your brillient project.
I would like to ask you to add custom inbound selection feature
its like for example we set 5 diffrent inbounds as a one group and when we want to select inbounds in client erea , we select that one group option to add those 5 inbounds only with one click and no need to click 5 inbounds one by one...
i know there is attach option with selection option but adding group inbounds with one click make its better when we want to creat new client.
the second thing is when we set to show remaining days or traffic in client's subscription, it apears in first inbound which we added to client's sub and its not good looking... can we have a unique inbounds as first inbounds in subscription client for only showing details and not work as inbound ?
God bless you
BR,
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 23, 2026):
This report contains two separate feature requests. Here is what the current code does and what each request would require.
Feature 1 — Inbound group presets for client creation
The panel already supports attaching a single client to multiple inbounds in one operation. The client creation API (
POST /panel/api/clients/add) accepts aSaveCreatePayloadwith aninboundIds: number[]array, and the frontendClientFormModal(frontend/src/pages/clients/ClientFormModal.tsx) renders a multi-select over all available inbounds. The underlying data is stored in theclient_inboundsjunction table (internal/database/model/model.go,ClientInboundstruct).What does not exist is a saved-preset or group concept: there is no
InboundGrouptable and no foreign key onInboundthat would let you name a set of inbounds and then select the whole set with one click. Implementing this would require at minimum:inbound_groupstable (id, name) and agroup_idcolumn onInbound(or a separate pivot table).Feature 2 — Info-only "header" entry in subscription output
The traffic/expiry summary that appears at the top of a client subscription page is not derived from any inbound entry. It is carried as an HTTP response header (
Subscription-Userinfo/x-subscription-userinfo) with the valueupload=X; download=Y; total=Z; expire=Tand is computed by aggregating allClientTrafficrows for the client's emails (internal/sub/service.go,AggregateTrafficByEmails()). The same header is set across all three subscription formats (raw links ininternal/sub/controller.go, JSON ininternal/sub/json_service.go, Clash ininternal/sub/clash_service.go).There is no mechanism to mark an inbound as "info-only" or to inject a non-functional first link that a client app would render as a summary entry rather than a connectable proxy. Subscription links are generated unconditionally for every active inbound a client is attached to, sorted by
SubSortIndexthenid(internal/sub/service.go,getInboundsBySubId()). Adding this would require:Inbound.IsInfoOnly) persisted to the database.internal/sub/service.goto skip info-only inbounds when building proxy links but include them (or their metadata) in a rendered header entry.Both features are non-trivial additions. If you or anyone else wants to implement either, a PR with schema migrations and service/controller/frontend changes would be the path forward. The
PR welcomedlabel can be requested from maintainers if you plan to submit one.This reply was generated automatically; a maintainer may follow up.