mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[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
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#4104
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 @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
v3.5.026.4.25Problem
After upgrading the panel to
v3.5.0, saving or applying this outbound fails with:The external Xray binary was downgraded to
26.4.25, which previously worked correctly with 3x-uiv3.4.2.The active Xray process is confirmed to be version
26.4.25:The generated configuration also passes validation successfully:
Output:
The affected outbound is present in
config.jsonand 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:
The message is found.
No result is returned.
The panel binary is compiled with a newer embedded Xray Core dependency:
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:
This configuration worked correctly with:
How to reproduce the problem
Suggested fix
Please consider one of the following:
This configuration worked correctly with:
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
@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) callsCheckXrayConfig, which for every outbound callsxray.ValidateOutboundConfig(internal/xray/api.go:178). That function builds the outbound throughconf.OutboundDetourConfig.Build()from the panel's compile-time embeddedgithub.com/xtls/xray-coreGo module — currentlyv1.260327.1-0.20260711155151-50231eaff98cpergo.mod:24, i.e. behavior equivalent to xray-core v26.7.11. On rejection it returnsxray 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, commit814cda3f), 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.godocuments 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 fromgithub.com/XTLS/Xray-core/releases, including pre-v26.7.11 ones like26.4.25that don't have this restriction — as yourstringscheck and passingxray run -testconfirm. 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 fromxray -versionoutput. That makes your suggestion #2 (gate the check on the selected/running core's version) the smallest change consistent with the existing design —CheckXrayConfigcould 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.
@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 )
@Chris-win11 commented on GitHub (Jul 19, 2026):
Had the same. I did downgrade to 3.4.2 and problem gone....
@mlgns commented on GitHub (Jul 20, 2026):
For anyone facing the same issue — just downgrade to 3.4.2 and you'll be fine