[GH-ISSUE #6802] [Question]: configs name in multilocation #4532

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

Originally created by @RezaHaghgoo on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6802

What are you trying to do?

I have a server configured as a node and connected to another master server. the remark of both servers are configured in the same way. However, when I generate a subscription link from the master server and import it into client applications, the configuration names for the master server appear correctly and completely, but the configuration names for the external server connected as a node are incomplete. Specifically, the part of the name containing the client's email address, which identifies the client, is missing, while the other parts of the name are displayed correctly. How can I fix this? What is the cause of this issue, and where exactly is the problem?

What have you already tried?

No response

3x-ui version

v3.4.2 and v3.6.0

How did you install 3x-ui?

install.sh script

Operating system

No response

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @RezaHaghgoo on GitHub (Oct 12, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6802 ### What are you trying to do? I have a server configured as a node and connected to another master server. the remark of both servers are configured in the same way. However, when I generate a subscription link from the master server and import it into client applications, the configuration names for the master server appear correctly and completely, but the configuration names for the external server connected as a node are incomplete. Specifically, the part of the name containing the client's email address, which identifies the client, is missing, while the other parts of the name are displayed correctly. How can I fix this? What is the cause of this issue, and where exactly is the problem? ### What have you already tried? _No response_ ### 3x-ui version v3.4.2 and v3.6.0 ### How did you install 3x-ui? install.sh script ### Operating system _No response_ ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:40:19 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 12, 2026):

This is intended behaviour, and you can turn it off with a setting. The missing email has nothing to do with nodes. When a remark template is set, the panel puts {{EMAIL}} / {{USERNAME}} only on the first link of a client's subscription. Your master inbound happens to come first, so the node's links come later and lose the email. To show the email on every link (available since v3.6.0):

  1. Open Panel Settings → Subscription → General.
  2. Turn on Show identity on every link (subShowIdentityOnAllLinks). Its description says: "When enabled, {{EMAIL}} and {{USERNAME}} stay on every subscription-body remark. Usage tokens still appear on the first link only."
  3. Save, then update the subscription in the client app.

On v3.4.2 this setting does not exist yet and the email always appears on the first link only. Upgrade to v3.6.0 or later (the current release is v3.10.0) to get the switch.

Where it happens: internal/sub/remark_vars.go, effectiveTemplate. After a client's first link, the identity tokens are filtered out of the template before it is expanded:

// internal/sub/remark_vars.go:627-634
key := templateInfoKey(client)
if s.subInfoNodeEnable || s.usageShown[key] {
    remove := firstLinkOnlyBodyTokens
    if s.showIdentityOnAllLinks {
        remove = usageInfoTokens
    }
    return filterRemarkTemplate(translated, remove)
}

firstLinkOnlyBodyTokens (remark_vars.go:540-543) is the usage tokens plus "EMAIL" and "USERNAME". Nothing in this path checks whether the inbound is local or on a node, which is why only the position of the link matters. One more case: with Separate Info Config / Dummy Node (subInfoNodeEnable) on, the email is removed from every real link unless the switch above is on.

Verdict: Not a bug (expected behaviour)
Severity: N/A
Confidence: High
Root cause: None. effectiveTemplate (internal/sub/remark_vars.go:622-638) removes EMAIL/USERNAME from every subscription-body link after a client's first one by design. Introduced in 876d55f2 "fix(sub): show {{EMAIL}} on first sub-body link only" (first shipped in v3.4.2), made optional by 8f49327e "feat(sub): allow identity tokens on every subscription link (#5935)" (first shipped in v3.6.0).
Same class: None found. The same rule applies to host-endpoint remarks through genHostRemark → genTemplatedRemark (remark_vars.go:651), and the opt-in switch covers that path too.
Already fixed: Not applicable. The opt-in setting exists from v3.6.0.
Duplicate of: Related: #6098 (same symptom, closed). A fix for it, c004c18d, was reverted in fd17255f, whose message says first-link-only identity "is intentional"
Evidence: Tests TestEmailOnFirstLinkOnly (internal/sub/remark_vars_test.go:677) and TestIdentityOnAllLinks (:705) pin both behaviours. The setting defaults to "false" (internal/web/service/setting.go:84), and the switch is rendered in frontend/src/pages/settings/SubscriptionGeneralTab.tsx:180-189. With no remark template set, fallbackRemark(inbound.Remark, extra, email) (internal/sub/service.go:2418) always includes the email.
Not determined: You also listed v3.6.0. If the switch is on there and the node's links still have no email, please reply with your exact remark template text and say whether "Separate Info Config / Dummy Node" is enabled.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6131016254 --> @github-actions[bot] commented on GitHub (Oct 12, 2026): This is intended behaviour, and you can turn it off with a setting. The missing email has nothing to do with nodes. When a remark template is set, the panel puts `{{EMAIL}}` / `{{USERNAME}}` only on the **first** link of a client's subscription. Your master inbound happens to come first, so the node's links come later and lose the email. To show the email on every link (available since **v3.6.0**): 1. Open **Panel Settings → Subscription → General**. 2. Turn on **Show identity on every link** (`subShowIdentityOnAllLinks`). Its description says: *"When enabled, {{EMAIL}} and {{USERNAME}} stay on every subscription-body remark. Usage tokens still appear on the first link only."* 3. Save, then update the subscription in the client app. On **v3.4.2** this setting does not exist yet and the email always appears on the first link only. Upgrade to v3.6.0 or later (the current release is v3.10.0) to get the switch. **Where it happens:** `internal/sub/remark_vars.go`, `effectiveTemplate`. After a client's first link, the identity tokens are filtered out of the template before it is expanded: ```go // internal/sub/remark_vars.go:627-634 key := templateInfoKey(client) if s.subInfoNodeEnable || s.usageShown[key] { remove := firstLinkOnlyBodyTokens if s.showIdentityOnAllLinks { remove = usageInfoTokens } return filterRemarkTemplate(translated, remove) } ``` `firstLinkOnlyBodyTokens` (`remark_vars.go:540-543`) is the usage tokens plus `"EMAIL"` and `"USERNAME"`. Nothing in this path checks whether the inbound is local or on a node, which is why only the position of the link matters. One more case: with **Separate Info Config / Dummy Node** (`subInfoNodeEnable`) on, the email is removed from *every* real link unless the switch above is on. Verdict: Not a bug (expected behaviour) Severity: N/A Confidence: High Root cause: None. `effectiveTemplate` (`internal/sub/remark_vars.go:622-638`) removes `EMAIL`/`USERNAME` from every subscription-body link after a client's first one by design. Introduced in 876d55f2 "fix(sub): show {{EMAIL}} on first sub-body link only" (first shipped in v3.4.2), made optional by 8f49327e "feat(sub): allow identity tokens on every subscription link (#5935)" (first shipped in v3.6.0). Same class: None found. The same rule applies to host-endpoint remarks through `genHostRemark` → `genTemplatedRemark` (`remark_vars.go:651`), and the opt-in switch covers that path too. Already fixed: Not applicable. The opt-in setting exists from v3.6.0. Duplicate of: Related: #6098 (same symptom, closed). A fix for it, c004c18d, was reverted in fd17255f, whose message says first-link-only identity "is intentional" Evidence: Tests `TestEmailOnFirstLinkOnly` (`internal/sub/remark_vars_test.go:677`) and `TestIdentityOnAllLinks` (`:705`) pin both behaviours. The setting defaults to `"false"` (`internal/web/service/setting.go:84`), and the switch is rendered in `frontend/src/pages/settings/SubscriptionGeneralTab.tsx:180-189`. With no remark template set, `fallbackRemark(inbound.Remark, extra, email)` (`internal/sub/service.go:2418`) always includes the email. Not determined: You also listed v3.6.0. If the switch is **on** there and the node's links still have no email, please reply with your exact remark template text and say whether "Separate Info Config / Dummy Node" is enabled. _This reply was generated automatically; a maintainer may follow up._ <!-- claude-issue:analyst -->
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#4532
No description provided.