[GH-ISSUE #5406] [Bug]: Exported client configs do not match inbound/admin settings and break user connections #3783

Closed
opened 2026-10-31 20:34:55 +07:00 by bsakaguchi · 3 comments
Owner

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:

  • The panel may automatically generate values such as spiderX
  • Some fields cannot be controlled correctly in the exported user config
  • For example, I need to set options like allowInsecure to true or false, but the exported config does not properly follow what I need
  • The final config shown to the user is not always the same config that the admin expects

Actual 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

  1. Update the panel to the latest version.

  2. Create an inbound and add a client/user.

  3. Export or display the generated client config for the user.

  4. Check the exported config.

  5. The exported config contains automatically generated or changed values that do not exactly match the admin/inbound settings.

  6. In some cases, values such as spiderX are generated automatically, or fields such as allowInsecure cannot be controlled correctly as true or false.

  7. Use the exported config on the client side.

  8. 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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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: * The panel may automatically generate values such as `spiderX` * Some fields cannot be controlled correctly in the exported user config * For example, I need to set options like `allowInsecure` to `true` or `false`, but the exported config does not properly follow what I need * The final config shown to the user is not always the same config that the admin expects ### Actual 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 1. Update the panel to the latest version. 2. Create an inbound and add a client/user. 3. Export or display the generated client config for the user. 4. Check the exported config. 5. The exported config contains automatically generated or changed values that do not exactly match the admin/inbound settings. 6. In some cases, values such as `spiderX` are generated automatically, or fields such as `allowInsecure` cannot be controlled correctly as `true` or `false`. 7. Use the exported config on the client side. 8. 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 ```shell ``` ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:34:55 +07:00
Author
Owner

@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.

spiderX is intentionally randomized

In both internal/sub/service.go:1190 and internal/sub/json_service.go:307, every generated REALITY share link and JSON subscription config sets spiderX to "/" + 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 random spiderX does not prevent REALITY connections from working; REALITY clients tolerate any non-empty path.

allowInsecure was removed by xray-core, not the panel

Starting with xray-core 26.6.1, allowInsecure in TLS outbound config is rejected at startup with the message:

The feature "allowInsecure" has been removed and migrated to "pinnedPeerCertSha256".

The panel's subscription generator (internal/sub/json_service.go, tlsData() at line 279) deliberately omits allowInsecure from exported configs and instead carries pinnedPeerCertSha256 through to the client. This matches xray-core's current requirements. There is no allowInsecure field 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 chosen shortId from the configured list, a randomly chosen serverName from the configured list, and a random spiderX.

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

  1. The exact protocol + transport + security combination (e.g., VLESS + XHTTP + REALITY, Trojan + WS + TLS).
  2. The panel-generated share link or JSON config (redact UUID/keys) that clients are receiving.
  3. The specific field value you expected vs. the value actually present in the exported config.
  4. The xray-core version in use (run x-ui and choose the status option, or check the panel settings page).
  5. The client-side error or log showing why the connection fails.

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.

<!-- gh-comment-id:4727295397 --> @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. **`spiderX` is intentionally randomized** In both `internal/sub/service.go:1190` and `internal/sub/json_service.go:307`, every generated REALITY share link and JSON subscription config sets `spiderX` to `"/" + 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 random `spiderX` does not prevent REALITY connections from working; REALITY clients tolerate any non-empty path. **`allowInsecure` was removed by xray-core, not the panel** Starting with xray-core 26.6.1, `allowInsecure` in TLS outbound config is rejected at startup with the message: ``` The feature "allowInsecure" has been removed and migrated to "pinnedPeerCertSha256". ``` The panel's subscription generator (`internal/sub/json_service.go`, `tlsData()` at line 279) deliberately omits `allowInsecure` from exported configs and instead carries `pinnedPeerCertSha256` through to the client. This matches xray-core's current requirements. There is no `allowInsecure` field 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 chosen `shortId` from the configured list, a randomly chosen `serverName` from the configured list, and a random `spiderX`. **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** 1. The exact protocol + transport + security combination (e.g., VLESS + XHTTP + REALITY, Trojan + WS + TLS). 2. The panel-generated share link or JSON config (redact UUID/keys) that clients are receiving. 3. The specific field value you expected vs. the value actually present in the exported config. 4. The xray-core version in use (run `x-ui` and choose the status option, or check the panel settings page). 5. The client-side error or log showing why the connection fails. 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.*
Author
Owner

@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.

<!-- gh-comment-id:4727966816 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:4738465973 --> @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.
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#3783
No description provided.