[GH-ISSUE #5916] [Bug]: 3x-ui v3.5.0 rejects VLESS outbound without TLS even when external Xray Core is downgraded to 26.4.25 #4104

Closed
opened 2026-10-31 20:37:12 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @rezakhosh78 on GitHub (Jul 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5916

Describe the bug

Title

3x-ui v3.5.0 rejects VLESS outbound without TLS even when external Xray Core is downgraded to 26.4.25

Environment

  • 3x-ui version: v3.5.0
  • External Xray Core: 26.4.25
  • OS: Ubuntu Linux amd64
  • Outbound protocol: VLESS
  • Transport: XHTTP
  • Security: none
  • Encryption: none
  • Destination: public domain

Problem

After upgrading the panel to v3.5.0, saving or applying this outbound fails with:

The parameters have been changed.
xray core rejects outbound "RunFlare-Portal-run":
infra/conf: vless without TLS or other encryption is prohibited unless the server address is a private IP or domain

The external Xray binary was downgraded to 26.4.25, which previously worked correctly with 3x-ui v3.4.2.

The active Xray process is confirmed to be version 26.4.25:

Xray 26.4.25

The generated configuration also passes validation successfully:

/usr/local/x-ui/bin/xray-linux-amd64 run -test \
-config /usr/local/x-ui/bin/config.json

Output:

Configuration OK.

The affected outbound is present in config.json and is accepted by Xray 26.4.25.

Root cause evidence

The rejection message exists inside the 3x-ui panel binary, but not inside the external Xray 26.4.25 binary:

strings /usr/local/x-ui/x-ui |
grep -F "vless without TLS or other encryption is prohibited"

The message is found.

strings /usr/local/x-ui/bin/xray-linux-amd64 |
grep -F "vless without TLS or other encryption is prohibited"

No result is returned.

The panel binary is compiled with a newer embedded Xray Core dependency:

github.com/xtls/xray-core
v1.260327.1-0.20260711155151-50231eaff98c

Therefore, the panel appears to validate or convert the outbound using its internally compiled Xray Core library before sending it to the external Xray binary.

Expected behavior

When the selected external Xray Core is 26.4.25, outbound validation should be performed using behavior compatible with that selected Core version.

Alternatively, the panel should allow saving the configuration when the external Xray binary successfully validates it.

Actual behavior

3x-ui v3.5.0 rejects the outbound using the newer embedded Xray Core validation rules, even though the active external Xray Core accepts the same configuration.

Suggested fix

Please consider one of the following:

  1. Perform outbound validation using the selected external Xray Core binary.
  2. Make the embedded validation rules compatible with the selected Core version.
  3. Add an option to bypass panel-side validation and restart the external Core with the generated configuration.
  4. Clearly prevent selecting older Core versions if the panel-side validation is not compatible with them.

This configuration worked correctly with:

3x-ui v3.4.2
Xray Core 26.4.25

How to reproduce the problem

Suggested fix

Please consider one of the following:

  1. Perform outbound validation using the selected external Xray Core binary.
  2. Make the embedded validation rules compatible with the selected Core version.
  3. Add an option to bypass panel-side validation and restart the external Core with the generated configuration.
  4. Clearly prevent selecting older Core versions if the panel-side validation is not compatible with them.

This configuration worked correctly with:

3x-ui v3.4.2
Xray Core 26.4.25

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.5.0

Xray-core version

26.6.27،26.4.25

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 22.0

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 @rezakhosh78 on GitHub (Jul 12, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5916 ### Describe the bug ### Title 3x-ui v3.5.0 rejects VLESS outbound without TLS even when external Xray Core is downgraded to 26.4.25 ### Environment * 3x-ui version: `v3.5.0` * External Xray Core: `26.4.25` * OS: Ubuntu Linux amd64 * Outbound protocol: VLESS * Transport: XHTTP * Security: none * Encryption: none * Destination: public domain ### Problem After upgrading the panel to `v3.5.0`, saving or applying this outbound fails with: ```text The parameters have been changed. xray core rejects outbound "RunFlare-Portal-run": infra/conf: vless without TLS or other encryption is prohibited unless the server address is a private IP or domain ``` The external Xray binary was downgraded to `26.4.25`, which previously worked correctly with 3x-ui `v3.4.2`. The active Xray process is confirmed to be version `26.4.25`: ```text Xray 26.4.25 ``` The generated configuration also passes validation successfully: ```bash /usr/local/x-ui/bin/xray-linux-amd64 run -test \ -config /usr/local/x-ui/bin/config.json ``` Output: ```text Configuration OK. ``` The affected outbound is present in `config.json` and is accepted by Xray 26.4.25. ### Root cause evidence The rejection message exists inside the 3x-ui panel binary, but not inside the external Xray 26.4.25 binary: ```bash strings /usr/local/x-ui/x-ui | grep -F "vless without TLS or other encryption is prohibited" ``` The message is found. ```bash strings /usr/local/x-ui/bin/xray-linux-amd64 | grep -F "vless without TLS or other encryption is prohibited" ``` No result is returned. The panel binary is compiled with a newer embedded Xray Core dependency: ```text github.com/xtls/xray-core v1.260327.1-0.20260711155151-50231eaff98c ``` Therefore, the panel appears to validate or convert the outbound using its internally compiled Xray Core library before sending it to the external Xray binary. ### Expected behavior When the selected external Xray Core is `26.4.25`, outbound validation should be performed using behavior compatible with that selected Core version. Alternatively, the panel should allow saving the configuration when the external Xray binary successfully validates it. ### Actual behavior 3x-ui v3.5.0 rejects the outbound using the newer embedded Xray Core validation rules, even though the active external Xray Core accepts the same configuration. ### Suggested fix Please consider one of the following: 1. Perform outbound validation using the selected external Xray Core binary. 2. Make the embedded validation rules compatible with the selected Core version. 3. Add an option to bypass panel-side validation and restart the external Core with the generated configuration. 4. Clearly prevent selecting older Core versions if the panel-side validation is not compatible with them. This configuration worked correctly with: ```text 3x-ui v3.4.2 Xray Core 26.4.25 ``` ### How to reproduce the problem ### Suggested fix Please consider one of the following: 1. Perform outbound validation using the selected external Xray Core binary. 2. Make the embedded validation rules compatible with the selected Core version. 3. Add an option to bypass panel-side validation and restart the external Core with the generated configuration. 4. Clearly prevent selecting older Core versions if the panel-side validation is not compatible with them. This configuration worked correctly with: ```text 3x-ui v3.4.2 Xray Core 26.4.25 ``` ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.5.0 ### Xray-core version 26.6.27،26.4.25 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 22.0 ### 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:37:12 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jul 12, 2026):

Confirmed. This is a real gap in v3.5.0's panel-side outbound validation, not a misconfiguration.

Title: Outbound save validation always uses the panel's embedded xray-core library, regardless of which external Xray-core binary is actually selected/running

Severity: Medium

Category: Correctness

Why this matters

XraySettingService.SaveXraySetting (internal/web/service/xray_setting.go:19) calls CheckXrayConfig, which for every outbound calls xray.ValidateOutboundConfig (internal/xray/api.go:178). That function builds the outbound through conf.OutboundDetourConfig.Build() from the panel's compile-time embedded github.com/xtls/xray-core Go module — currently v1.260327.1-0.20260711155151-50231eaff98c per go.mod:24, i.e. behavior equivalent to xray-core v26.7.11. On rejection it returns xray core rejects outbound "<tag>": <core error> (xray_setting.go:55), matching your error exactly, and the save is aborted before the config reaches disk or the running core.

This check is intentional, not accidental: it was added in the v3.5.0 upgrade to xray-core v26.7.11 (feat(xray): update xray-core to v26.7.11 and adapt panel, commit 814cda3f), because v26.7.11 itself started refusing to start at all with an unencrypted vless/trojan outbound to a public address — previously that would silently take down the entire core, not just the offending outbound. internal/xray/outbound_validation_test.go documents this exact rationale, and the release install scripts (.github/workflows/release.yml, DockerInit.sh) default fresh installs to that same v26.7.11 external binary, so panel and core normally agree.

The gap you found: this validation is unconditional and never consults which external binary is actually selected. ServerService.UpdateXray/GetXrayVersions (internal/web/service/server.go) let an admin download and run any tagged release from github.com/XTLS/Xray-core/releases, including pre-v26.7.11 ones like 26.4.25 that don't have this restriction — as your strings check and passing xray run -test confirm. The panel doesn't relax its check for that case, so a config the selected core would happily run is rejected before it gets the chance.

Recommendation

Worth noting: the panel already tracks the running binary's version as a plain string — XrayService.GetXrayVersion() / process.refreshVersion() (internal/xray/process.go:283, :486), parsed from xray -version output. That makes your suggestion #2 (gate the check on the selected/running core's version) the smallest change consistent with the existing design — CheckXrayConfig could skip the unencrypted-public-vless/trojan rule when the running core predates v26.7.11. An explicit bypass toggle (your #3) would reintroduce the exact whole-core-crash risk this check was built to prevent, so it'd need a prominent warning if implemented. Validating against the actual external binary (xray run -test) is possible but a heavier change involving temp-file config assembly. This is a decision for @MHSanaei; no fix is being made here.

Confidence: High on root cause — confirmed directly in source (call chain, exact error string, embedded module version, originating commit, and dedicated regression test). Medium on preferred fix direction, which is a maintainer design call.

@MHSanaei

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4953079230 --> @github-actions[bot] commented on GitHub (Jul 12, 2026): Confirmed. This is a real gap in v3.5.0's panel-side outbound validation, not a misconfiguration. **Title:** Outbound save validation always uses the panel's embedded xray-core library, regardless of which external Xray-core binary is actually selected/running **Severity:** Medium **Category:** Correctness **Why this matters** `XraySettingService.SaveXraySetting` (`internal/web/service/xray_setting.go:19`) calls `CheckXrayConfig`, which for every outbound calls `xray.ValidateOutboundConfig` (`internal/xray/api.go:178`). That function builds the outbound through `conf.OutboundDetourConfig.Build()` from the panel's **compile-time embedded** `github.com/xtls/xray-core` Go module — currently `v1.260327.1-0.20260711155151-50231eaff98c` per `go.mod:24`, i.e. behavior equivalent to xray-core v26.7.11. On rejection it returns `xray core rejects outbound "<tag>": <core error>` (`xray_setting.go:55`), matching your error exactly, and the save is aborted before the config reaches disk or the running core. This check is intentional, not accidental: it was added in the v3.5.0 upgrade to xray-core v26.7.11 (`feat(xray): update xray-core to v26.7.11 and adapt panel`, commit `814cda3f`), because v26.7.11 itself started refusing to *start* at all with an unencrypted vless/trojan outbound to a public address — previously that would silently take down the entire core, not just the offending outbound. `internal/xray/outbound_validation_test.go` documents this exact rationale, and the release install scripts (`.github/workflows/release.yml`, `DockerInit.sh`) default fresh installs to that same v26.7.11 external binary, so panel and core normally agree. The gap you found: this validation is unconditional and never consults which external binary is actually selected. `ServerService.UpdateXray`/`GetXrayVersions` (`internal/web/service/server.go`) let an admin download and run any tagged release from `github.com/XTLS/Xray-core/releases`, including pre-v26.7.11 ones like `26.4.25` that don't have this restriction — as your `strings` check and passing `xray run -test` confirm. The panel doesn't relax its check for that case, so a config the selected core would happily run is rejected before it gets the chance. **Recommendation** Worth noting: the panel already tracks the running binary's version as a plain string — `XrayService.GetXrayVersion()` / `process.refreshVersion()` (`internal/xray/process.go:283`, `:486`), parsed from `xray -version` output. That makes your suggestion #2 (gate the check on the selected/running core's version) the smallest change consistent with the existing design — `CheckXrayConfig` could skip the unencrypted-public-vless/trojan rule when the running core predates v26.7.11. An explicit bypass toggle (your #3) would reintroduce the exact whole-core-crash risk this check was built to prevent, so it'd need a prominent warning if implemented. Validating against the actual external binary (`xray run -test`) is possible but a heavier change involving temp-file config assembly. This is a decision for @MHSanaei; no fix is being made here. **Confidence:** High on root cause — confirmed directly in source (call chain, exact error string, embedded module version, originating commit, and dedicated regression test). Medium on preferred fix direction, which is a maintainer design call. @MHSanaei *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@samansamie commented on GitHub (Jul 17, 2026):

Also even if you had a non-TLS vless and it working fine with the old version of xray core(26.6.27), you cannot edit routing rules and you get this error:
پارامترها تغییر کرده‌اند. (xray core rejects outbound "Direct-IR": infra/conf: vless without TLS or other encryption is prohibited unless the server address is a private IP or domain )

<!-- gh-comment-id:4999721574 --> @samansamie commented on GitHub (Jul 17, 2026): Also even if you had a non-TLS vless and it working fine with the old version of xray core(26.6.27), you cannot edit routing rules and you get this error: پارامترها تغییر کرده‌اند. (xray core rejects outbound "Direct-IR": infra/conf: vless without TLS or other encryption is prohibited unless the server address is a private IP or domain )
Author
Owner

@Chris-win11 commented on GitHub (Jul 19, 2026):

Had the same. I did downgrade to 3.4.2 and problem gone....

<!-- gh-comment-id:5017261771 --> @Chris-win11 commented on GitHub (Jul 19, 2026): Had the same. I did downgrade to 3.4.2 and problem gone....
Author
Owner

@mlgns commented on GitHub (Jul 20, 2026):

For anyone facing the same issue — just downgrade to 3.4.2 and you'll be fine

<!-- gh-comment-id:5027457900 --> @mlgns commented on GitHub (Jul 20, 2026): For anyone facing the same issue — just downgrade to 3.4.2 and you'll be fine
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#4104
No description provided.