mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6581] [CLOSED] fix(sub): keep VLESS encryption on merged external Clash nodes #6362
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#6362
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/6581
Author: @sdhfsl
Created: 9/17/2026
Status: ❌ Closed
Base:
main← Head:fix-external-vless-encryption📝 Commits (6)
959e6fdfix(panel): accept 2FA codes from adjacent TOTP windowsf3096bbfix(panel): share TOTP skew tolerance with VerifyTwoFactorCode198ac75Merge branch 'main' into mainacb0297Merge branch 'MHSanaei:main' into main35b92a1Merge branch 'MHSanaei:main' into main37da44ffix(sub): keep VLESS encryption on merged external Clash nodes📊 Changes
2 files changed (+43 additions, -0 deletions)
View changed files
📝
internal/sub/clash_external.go(+6 -0)➕
internal/sub/clash_external_vless_test.go(+37 -0)📄 Description
Problem
Fixes #6572.
A VLESS node with VLESS Encryption works in its standalone subscription but times out once merged into another client's subscription as an external link: the merged Clash entry loses its
encryptionfield.Root cause
Share-link parsing keeps the field (
link/outbound.goputsencryptioninto settings), and the inbound Clash path emits it (clash_service.go:439). But the external-link path (clashProxyFromExternalvless branch) only copied uuid/flow and droppedencryption— the one path that renders merged nodes.Fix
Apply the same non-empty, non-
nonegate as the inbound path. One branch, no behaviour change for links without encryption.Tests
New
TestClashProxyFromExternalVlessKeepsEncryption(issue shape: REALITY + mlkem768 native) and...OmitsEmptyEncryption. Mutation-checked (field copy removed -> good test fails withencryption = <nil>, restored -> green). Fullinternal/subsuite passes,go vet+ gofmt clean.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.