mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5517] [MERGED] feat(web): vless encryption new modes #5910
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#5910
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5517
Author: @FunLay123
Created: 6/23/2026
Status: ✅ Merged
Merged: 6/24/2026
Merged by: @MHSanaei
Base:
main← Head:vless_encryption📝 Commits (9)
eed31b2feat(web): add vless encryption new modes356a931feat(web): add translations for vless encryption modes9af1b84Merge branch 'MHSanaei:main' into vless_encryption409ff31Merge branch 'MHSanaei:main' into vless_encryptiona3be452Merge branch 'MHSanaei:main' into vless_encryptionf904adafeat(translation): bring "vlessAuthX25519" and "vlessAuthMlkem768" to general form57f9b81Merge branch 'vless_encryption' of https://github.com/FunLay123/3x-ui into vless_encryption2537f2eMerge branch 'MHSanaei:main' into vless_encryptioncb03adbMerge branch 'main' into vless_encryption📊 Changes
17 files changed (+219 additions, -51 deletions)
View changed files
📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+19 -3)📝
frontend/src/pages/inbounds/form/protocols/vless.tsx(+31 -8)📝
internal/web/service/server.go(+24 -1)📝
internal/web/service/server_vlessenc_test.go(+28 -0)📝
internal/web/translation/ar-EG.json(+9 -3)📝
internal/web/translation/en-US.json(+9 -3)📝
internal/web/translation/es-ES.json(+9 -3)📝
internal/web/translation/fa-IR.json(+9 -3)📝
internal/web/translation/id-ID.json(+9 -3)📝
internal/web/translation/ja-JP.json(+9 -3)📝
internal/web/translation/pt-BR.json(+9 -3)📝
internal/web/translation/ru-RU.json(+9 -3)📝
internal/web/translation/tr-TR.json(+9 -3)📝
internal/web/translation/uk-UA.json(+9 -3)📝
internal/web/translation/vi-VN.json(+9 -3)📝
internal/web/translation/zh-CN.json(+9 -3)📝
internal/web/translation/zh-TW.json(+9 -3)📄 Description
Summary
Adds
xorpubandrandomVLESS Encryption auth modes (X25519 + ML-KEM-768) to the inbound form, derived from the same key materialxray vlessencalready generates fornative, plus full translations for the new UI strings across all locales.Why
xray vlessenconly outputs thenativemode, even though Xray-core's VLESS Encryption supports three wire-obfuscation modes (native/xorpub/random) on the same key pair. Users who wantxorpuborrandomhad no way to get a ready-to-use config from the panel and had to hand-edit the generated string. This PR derives all three modes server-side and exposes them as one-click buttons.Type of change
Areas affected
How was this tested?
x25519,x25519 (xorpub),x25519 (random),mlkem768,mlkem768 (xorpub),mlkem768 (random)); each one correctly populatedsettings.decryption/settings.encryption, and the "selected auth" label under the buttons updated to the matching translated string.mlkem768 (random)auth; Xray started successfully with no config-parsing errors in the log.x25519 (random)- Works :)Screenshots / recordings
Breaking changes
None. Existing inbounds and the
native-only API response shape are untouched; this only adds new optional auth IDs and translation keys.Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.