mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4137] External Proxy strips Reality security parameters from generated client URI #2809
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#2809
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 @vyacheslavshtyrlin on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4137
Describe the bug
When External Proxy is configured on a VLESS+Reality inbound (without TLS, which is the correct setting for Reality), the generated client share link loses all Reality-specific parameters and reverts to security=none, making the link completely non-functional.
Setup context
nginx stream proxy sits in front of xray on port 443 with SNI-based routing:
stream {
map $ssl_preread_server_name $backend {
www.microsoft.com 127.0.0.1:2099; # Reality inbound
default 127.0.0.1:2083; # fallback
}
server {
listen 443;
ssl_preread on;
proxy_pass $backend;
}
}
Reality inbound listens on internal port 2099. External Proxy host:443 (TLS unchecked) is needed so clients connect via 443 instead of 2099 directly. TLS is unchecked because Reality handles its own TLS-like handshake — adding a TLS wrapper would be incorrect.
How to repeat the problem?
Expected action
vless://uuid@host:443?type=tcp&encryption=none&security=reality&pbk=PUBLIC_KEY&fp=chrome&sni=SNI&sid=SHORT_ID&spx=%2F#name
Received action
vless://uuid@host:443?type=tcp&encryption=none&security=none#name
All Reality parameters (security=reality, pbk, sni, fp, sid) are stripped.
Workaround
Generate the URI without External Proxy (uses internal port), then manually replace the port with 443 in the URI.
3x-ui Version
2.9.3
Xray-core Version
26.4.17
Checklist
@vyacheslavshtyrlin commented on GitHub (Apr 29, 2026):
The External Proxy TLS field has three options — TLS, Same, Empty — with a single shared tooltip "Force TLS" that explains nothing. For Reality, Empty is the logical choice, yet it triggers this bug. Same is equally opaque. Each option needs a tooltip describing its actual effect on the generated URI.