mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5049] [Bug]: Xray Crash when trying to use mKCP transport with UDP mask mKCP Legacy + uTP #3556
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#3556
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 @SHULKERPLAY on GitHub (Jun 7, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5049
Describe the bug
Maybe i did something wrong in the config but this seems a little strange.
I tried to use mKCP transport over VLESS and selected UDP mask mKCP Legacy uTP. If i try to start this inbound Xray will crash with this log:
Part of config looks like this (Using in panel Xray
v26.5.9)How to reproduce the problem
InboundspagemKCP LegacyHeaderuTPValue(random sha-256)infra/conf: failed to build inbound config with tag in-port-udp > infra/conf: failed to build mask with type mkcp-legacy > infra/conf: unknown config id: mkcp-legacyExpected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.8
Xray-core version
26.5.9
How did you install 3x-ui?
Docker / Docker Compose
Operating system
Debian 13
Which parts of the panel are affected?
Xray config generation
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@github-actions[bot] commented on GitHub (Jun 7, 2026):
Root cause
The
mkcp-legacyUDP mask type was added to xray-core in v26.6.1 (via XTLS/Xray-core#6201, merged 2026-05-29). xray-core v26.5.9 (released 2026-05-09) predates that change and does not register themkcp-legacyconfig ID — henceinfra/conf: unknown config id: mkcp-legacy.The 3x-ui frontend UI gained the mKCP Legacy option in v3.2.5 (2026-06-01), and
DockerInit.shwas updated in the same release to bundle xray-core v26.6.1. So all Docker images built from v3.2.5 onward carry v26.6.1 and do supportmkcp-legacy.Your panel reports 3x-ui v3.2.8 but Xray v26.5.9, which means your container is running from an image built before that bump — a stale cached layer.
Fix
Pull and recreate the container with the latest image:
After the container restarts the panel's Settings → Xray page (or the version footer) should show v26.6.1 (or later). Once it does, the mKCP Legacy inbound you created will start without error.
@SHULKERPLAY commented on GitHub (Jun 7, 2026):
True my bad. Thanks, Claude Sonnet 4.6!