mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6802] [Question]: configs name in multilocation #4532
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#4532
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 @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
@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):subShowIdentityOnAllLinks). Its description says: "When enabled, {{EMAIL}} and {{USERNAME}} stay on every subscription-body remark. Usage tokens still appear on the first link only."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: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) removesEMAIL/USERNAMEfrom every subscription-body link after a client's first one by design. Introduced in876d55f2"fix(sub): show {{EMAIL}} on first sub-body link only" (first shipped in v3.4.2), made optional by8f49327e"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 infd17255f, whose message says first-link-only identity "is intentional"Evidence: Tests
TestEmailOnFirstLinkOnly(internal/sub/remark_vars_test.go:677) andTestIdentityOnAllLinks(:705) pin both behaviours. The setting defaults to"false"(internal/web/service/setting.go:84), and the switch is rendered infrontend/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.