[GH-ISSUE #5347] [Feature]: Add option to disable node name suffix (@node) in subscription remarks for multi-node setups #3746

Closed
opened 2026-10-31 20:34:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @3dsboydude on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5347

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

Image how it looks like right now Image how it would look better

Which parts of the panel would this affect?

Subscription (share links / Clash / JSON)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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 <img width="242" height="57" alt="Image" src="https://github.com/user-attachments/assets/654a477e-865d-4ac0-a8a7-37b02597accb" /> how it looks like right now <img width="238" height="57" alt="Image" src="https://github.com/user-attachments/assets/8f044318-67ad-4445-9fca-618183540221" /> how it would look better ### Which parts of the panel would this affect? Subscription (share links / Clash / JSON) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:34:39 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 15, 2026):

The @NodeName suffix you describe has already been removed from the main branch, unconditionally, by commit 69a7ab0 (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:

Version Subscription remark
≤ v3.3.0 Inbound remark only — no suffix
v3.3.1 Inbound remark + @NodeName (regression introduced by #5035)
main (post-v3.3.1) Inbound remark only — suffix removed by 69a7ab0

This is confirmed by reading internal/sub/service.go: genRemark() (line 1540) now builds the subscription remark solely from the i/e/o remark-model slots with no node-name component anywhere in the function. A regression test, TestGenRemarkOmitsNodeName in internal/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 Remark field exactly. The subEmailInRemark setting remains unchanged and continues to control the client e-mail component.

What you can do now:

  • Wait for the next release after v3.3.1, which will include this fix.
  • Or build from main if 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.

<!-- gh-comment-id:4708292075 --> @github-actions[bot] commented on GitHub (Jun 15, 2026): The `@NodeName` suffix you describe has already been removed from the `main` branch, unconditionally, by commit [`69a7ab0`](https://github.com/MHSanaei/3x-ui/commit/69a7ab0f9545d4d25b76f08cc1f200e4483b98c6) (`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:** | Version | Subscription remark | |---------|---------------------| | ≤ v3.3.0 | Inbound remark only — no suffix | | v3.3.1 | Inbound remark + `@NodeName` (regression introduced by #5035) | | `main` (post-v3.3.1) | Inbound remark only — suffix removed by 69a7ab0 | This is confirmed by reading `internal/sub/service.go`: `genRemark()` (line 1540) now builds the subscription remark solely from the `i`/`e`/`o` remark-model slots with no node-name component anywhere in the function. A regression test, `TestGenRemarkOmitsNodeName` in `internal/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 `Remark` field exactly. The `subEmailInRemark` setting remains unchanged and continues to control the client e-mail component. **What you can do now:** - Wait for the next release after v3.3.1, which will include this fix. - Or build from `main` if 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.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3746
No description provided.