mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5324] [Question]: Customizing the node name in subscriptions / Setting up the display of '@NodeName' when importing inbounds #3731
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#3731
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 @Doppelgangers on GitHub (Jun 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5324
What are you trying to do?
Problem Description
When using multi-node synchronization and enabling "All Inbounds" synchronization from a remote node, the panel automatically appends the node name to the inbound name using the @ symbol (resulting in "InboundName@NodeName").
In the subscription settings (/panel/settings#subscription), under "Note Model and Separator Symbol," you can only manage three variables: "Inbound," "Email," and "Other."
Because the "@NodeName" suffix is hardcoded into the import logic, the flexible signature structure configuration breaks. Instead of a beautiful and neat name (for example, using the "|" separator), the client application receives ugly strings like "Amsterdam@AM1|Doppel."
Suggestion / How to fix
It would be great to add a separate tag (variable)
Nodeto the "Note Model" constructor.This would allow users to decide where and how to display the node name:
Inbound | Node | Email | Other-> to getAmsterdam | AM1 | user1.Nodefrom the template if the node name is not required in the subscription name at all.Screenshots
What have you already tried?
No response
3x-ui version
3.3.1
How did you install 3x-ui?
install.sh script
Operating system
Debian13
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jun 14, 2026):
Two separate things are happening here, and it helps to address them independently.
1. The immediate problem:
@NodeNamesuffix in v3.3.1The forced
@NodeNameappend was introduced in v3.3.1 as a workaround for duplicate-remark collisions in multi-node subscriptions (see #5035). It has already been removed on themainbranch.genRemark()ininternal/sub/service.go(lines 1514–1596) now only assembles the three template variables (i,e,o) with no node-name suffix, andTestGenRemarkOmitsNodeNameininternal/sub/service_test.go(line 32) explicitly guards against the regression returning. v3.3.1 is still the latest release at the time of writing, so this fix has not shipped yet.2. The feature request:
Nodeas a configurable remark-model variableThis does not exist in the codebase. The remark model (
remarkModelsetting, default"-ieo") currently recognises exactly three single-character slots, confirmed ininternal/sub/service.go:1517–1520:ieoThe frontend mirrors these in
frontend/src/pages/settings/SubscriptionGeneralTab.tsx(REMARK_MODELS). There is non(Node) slot, so there is currently no way to include the node name as a positioned, formatted component of the subscription remark.Adding such a slot would be a new enhancement. The precedent for gating a remark component on a flag is the existing
emailInRemarkbool onSubService, populated from thesubEmailInRemarksetting (internal/web/entity/entity.go:79,internal/web/service/setting.go). ANodevariable would follow the same pattern: a newncharacter in the model string, populated withnodesByID[*inbound.NodeID].Namewhen the inbound has aNodeIDset and the node is found.What you can do now:
main, which has the suffix removed.Node-variable enhancement specifically, a new focused feature request or PR would be appropriate, since the prior issues (#5231, #5235, #5257) addressed only the removal/toggle of the forced suffix, not the opt-in template variable.This reply was generated automatically; a maintainer may follow up.