mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5406] [Bug]: Exported client configs do not match inbound/admin settings and break user connections #3783
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#3783
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 @maralnet20-sudo on GitHub (Jun 17, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5406
Describe the bug
Hello,
This is a bug report, not a feature request.
After updating the panel, the exported client configs do not correctly match the inbound/admin settings.
The panel displays/generates the final inbound/client config directly for users, but some generated values are wrong or not controllable by the admin. Because of this, the final config shown to users can become invalid and users cannot connect.
This issue is not limited to Reality only. I have seen problems in different protocols and different config fields.
For example:
spiderXallowInsecuretotrueorfalse, but the exported config does not properly follow what I needActual behavior
The panel generates and exports client configs with values that are not fully controlled by the admin.
The generated/exported config can be different from the real expected inbound settings.
As a result, users receive broken configs and cannot connect.
Expected behavior
The exported client config must exactly follow the inbound/admin settings.
The panel should not automatically generate or change important config fields in a way that breaks user connections.
All important client config fields should be controllable by the admin before being shown/exported to users.
Impact
This caused my users to lose connection after updating the panel.
Because of this issue, I had to downgrade to an older version of the panel.
Please treat this as a bug because the panel is exporting broken client configs, and this directly affects active users.
Thank you.
How to reproduce the problem
Update the panel to the latest version.
Create an inbound and add a client/user.
Export or display the generated client config for the user.
Check the exported config.
The exported config contains automatically generated or changed values that do not exactly match the admin/inbound settings.
In some cases, values such as
spiderXare generated automatically, or fields such asallowInsecurecannot be controlled correctly astrueorfalse.Use the exported config on the client side.
The connection fails or becomes unstable because the panel exports a config that does not match the expected admin settings.
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
22
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 17, 2026):
Two of the specific behaviors you describe are intentional by design, and one (
allowInsecure) was removed by xray-core itself. Here is what the current source confirms for each claim, followed by what is still needed to diagnose any real connection breakage.spiderXis intentionally randomizedIn both
internal/sub/service.go:1190andinternal/sub/json_service.go:307, every generated REALITY share link and JSON subscription config setsspiderXto"/" + random.Seq(15)— a fresh random 15-character path on every export. This is correct REALITY protocol behavior: the spider path is meant to vary so that the TLS handshake mimics a real browser visiting a random page. A randomspiderXdoes not prevent REALITY connections from working; REALITY clients tolerate any non-empty path.allowInsecurewas removed by xray-core, not the panelStarting with xray-core 26.6.1,
allowInsecurein TLS outbound config is rejected at startup with the message:The panel's subscription generator (
internal/sub/json_service.go,tlsData()at line 279) deliberately omitsallowInsecurefrom exported configs and instead carriespinnedPeerCertSha256through to the client. This matches xray-core's current requirements. There is noallowInsecurefield to include because xray-core will reject it. If you need to trust a self-signed certificate, pin its SHA-256 hash in the inbound's TLS settings; the panel will propagate it to the exported link and JSON config.What the panel does include in TLS/REALITY client configs
For TLS (
internal/sub/service.go:1046–1075,internal/sub/json_service.go:279–294):serverName,alpn,fingerprint,echConfigList,pinnedPeerCertSha256.For REALITY (
internal/sub/service.go:1164–1191,internal/sub/json_service.go:297–322):publicKey,fingerprint,mldsa65Verify, a randomly chosenshortIdfrom the configured list, a randomly chosenserverNamefrom the configured list, and a randomspiderX.Related open request
The feature of having a separate, fully customizable client-facing config (to override
serverName,host,path, and similar fields independently of the server-side inbound) is tracked as a backlog enhancement in #5404.To diagnose actual connection failures, the following is needed
x-uiand choose the status option, or check the panel settings page).Without a concrete example of a field that is wrong (not just random or absent by design), it is not possible to confirm whether there is a code defect distinct from the two behaviors explained above.
This reply was generated automatically; a maintainer may follow up.
@artur002 commented on GitHub (Jun 17, 2026):
I can confirm that spiderX specifically is the problematic part for me. I actually had to write a sniffer that removes or modifies this parameter. It’s the subscription mechanism itself that generates these parameters, making them highly conspicuous to the censor (and this happens across all types of VLESS obfuscation). It would be great if you could add subscription data customization, allowing us to manually specify what gets sent to the client.
@ppqq1258-cmyk commented on GitHub (Jun 18, 2026):
Unfortunately, the binary panel has become completely unusable in the new versions. The binary engineer has not heard of it either, and it seems they have no explanation. Either use the old versions or similar panels.