mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5431] [Bug]: Email field missing #3798
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#3798
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 @qin9125 on GitHub (Jun 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5431
Describe the bug
In the latest source-compiled installation package, the email field in the subscription chain is missing, causing the clash subscription nodes converted by sub store to be unrecognizable.
How to reproduce the problem
{"sni":"xxx","client-fingerprint":"chrome","alpn":["h2","http/1.1"],"network":"tcp","type":"trojan","password":"xxx","server":"xxx","port":35005,"name":"🇺🇸 USA-bw-tcp-tls"}
{"sni":"xxx","client-fingerprint":"chrome","alpn":["h2","http/1.1"],"network":"tcp","type":"trojan","password":"xxx","server":"xxx","port":35005,"name":"🇺🇸 USA"}
"name":"🇺🇸 USA-bw-tcp-tls"
"name":"🇺🇸 USA"
-bw-tcp-tls field missing
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.3.1
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 18, 2026):
The missing suffix is your client's email field. The remark template system (introduced to replace the old per-field remark checkboxes) controls what appears in subscription node names, and the current default template does not include the
{{EMAIL}}token.What the code does
The default remark template, confirmed in
internal/web/service/setting.go:56, is:The template engine (in
internal/sub/remark_vars.go) splits on|into segments. A segment whose only value is∞(unlimited traffic or no expiry) is dropped entirely. For a client with no traffic cap and no expiry:{{INBOUND}}— your inbound remark, e.g.🇺🇸 USA— kept📊{{TRAFFIC_LEFT}}—∞— dropped⏳{{DAYS_LEFT}}D—∞— droppedResult in the subscription link fragment:
🇺🇸 USA. Sub Store reads that fragment asname, which matches what you see.How to fix it
Add
{{EMAIL}}(or{{USERNAME}}, which is an alias) to your remark template in the panel:Settings → Subscription → Remark Template
For example:
This will produce
🇺🇸 USA-bw-tcp-tlsas the node name. The available tokens are shown in the{{ }}picker next to the input field.Note for maintainers
The inline comment in
internal/sub/service.go:1574states: "The configurable remark model was removed in favour of the template, whose default already includes the email." The actual default template does not include{{EMAIL}}, which is inconsistent with that comment and likely the source of the user's expectation.This reply was generated automatically; a maintainer may follow up.