mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6661] [Feature]: add custom inbound name #4451
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#4451
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 @sinath72 on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6661
Is your feature request related to a problem?
When an inbound has multiple Hosts and its port is changed, there is currently no way to set a custom inbound name that is displayed to users. This makes it difficult to identify and manage the correct inbound, especially when many Hosts are associated with the same inbound.
Describe the solution you'd like
hi
please add custom inbound name in Hosts when i change inbound port and have many hosts of that inbounds can change that inbound name for users
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 (Sep 26, 2026):
You can already do this: every Host has its own Remark field, and it shows up in your users' subscription links through the
{{HOST}}token in the subscription Remark Template. The default template doesn't include{{HOST}}, so out of the box every Host under an inbound gets the same name.How to show a separate name for each Host
Germany-CDN,Port-8443). The field is required (validate:"required,max=256",internal/database/model/model.go:1071).{{HOST}}, either on its own or next to{{INBOUND}}. For example, starting from the default: or, to show only the Host's name:Changing the inbound's port doesn't matter here. A Host can also set its own Port (
model.go:1078), so each Host can point to a different port and still have a different name.Why it works this way (from the source)
genHostRemark(internal/sub/remark_vars.go:676-681). If a template is set, it expands the template. If not, it joins inbound remark, host remark and email:case "HOST": return ctx.hostRemark(remark_vars.go:202-203).{{INBOUND}}is always the inbound's own remark (configName(),remark_vars.go:32-37).{{HOST}}:DefaultRemarkTemplate = "{{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D"(internal/web/service/setting.go:40). That's why all Hosts of one inbound look the same until the template is changed.{ token: 'HOST', group: 'client', sample: 'CDN' }(frontend/src/lib/remark/remarkVariables.ts:22).For the maintainer, one small side note: the Host form hint
pages.hosts.hints.remark(internal/web/translation/en-US.json:1058) says the host remark is "Shown as the config name only when the inbound has no remark of its own". The code above never uses the host remark as the config name; it only appears through{{HOST}}or the no-template fallback join. That hint is probably why this looks missing.If you meant something else, such as renaming the inbound itself only for users, reply with what you expect a link name to look like and what you get now. I've left this open and relabelled it as a question.
Verdict: Not a bug (user configuration). The feature exists through Host Remark plus the
{{HOST}}token in the Remark Template.This reply was generated automatically; a maintainer may follow up.