mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5347] [Feature]: Add option to disable node name suffix (@node) in subscription remarks for multi-node setups #3746
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#3746
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 @3dsboydude on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5347
Is your feature request related to a problem?
s your feature request related to a problem?
In a multi‑node configuration (Master‑Slave), the panel automatically appends a suffix with the node name to every inbound remark in the subscription output. For example, a node with remark 🇩🇪 Germany becomes 🇩🇪 Germany@de-frankfurt-1.
This causes several issues:
Visual clutter - End users see internal technical identifiers (node names) that have no meaning for them.
No way to disable - Existing settings like Remark Model or Share address strategy do not affect this suffix; it is hardcoded in the subscription generator.
Describe the solution you'd like
Add a simple toggle in Settings → Subscription Settings, e.g.:
Enable node identification suffix (checkbox, default = ON for backward compatibility)
When OFF, the panel should not add the @nodename suffix to any inbound remark in the subscription output. The remark should remain exactly as set in the inbound’s Remark field.
Ideally, this setting should take precedence over the current hardcoded behavior (the code block that appends the suffix).
Alternatives you've considered
Manually patching sub/subService.go - Removing the suffix block works, but the change is lost on every update and is not user‑friendly.
Using Nginx sub_filter - Possible but hacky, requires extra server resources and maintenance.
Switching to unofficial forks - Forks like hydraponique or Differin3 either lack support or introduce other bugs.
All alternatives are workarounds; a native setting would be the cleanest solution.
Concrete use case
If an administrator runs a multi‑node setup (one Master and several Slaves) and provides subscriptions to external users, those users will see technical identifiers (e.g., Germany@de‑frankfurt‑1) instead of clean server names. This confuses users, looks unprofessional.
Mockups, screenshots, or examples
Which parts of the panel would this affect?
Subscription (share links / Clash / JSON)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 15, 2026):
The
@NodeNamesuffix you describe has already been removed from themainbranch, unconditionally, by commit69a7ab0(fix(sub): stop appending the node name to subscription remarks (#5231), merged 2026-06-12, the same day v3.3.1 was tagged).Current behavior by version:
@NodeName(regression introduced by #5035)main(post-v3.3.1)69a7ab0This is confirmed by reading
internal/sub/service.go:genRemark()(line 1540) now builds the subscription remark solely from thei/e/oremark-model slots with no node-name component anywhere in the function. A regression test,TestGenRemarkOmitsNodeNameininternal/sub/service_test.go:32, explicitly guards against the suffix returning.On the toggle request specifically: no toggle is needed and none has been added, because the suffix is removed unconditionally rather than made configurable. The remark in subscription output will match the admin-set
Remarkfield exactly. ThesubEmailInRemarksetting remains unchanged and continues to control the client e-mail component.What you can do now:
mainif you need it immediately.This is a duplicate of the same request tracked and resolved in #5231 / #5235 / #5257.
This reply was generated automatically; a maintainer may follow up.