mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6420] [MERGED] fix(sub): skip AmneziaWG JSON entries #6262
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#6262
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/6420
Author: @atirna
Created: 9/5/2026
Status: ✅ Merged
Merged: 9/5/2026
Merged by: @MHSanaei
Base:
main← Head:fix/sub-json-skip-amneziawg📝 Commits (1)
39ec5b4fix(sub): skip AmneziaWG JSON entries📊 Changes
2 files changed (+8 additions, -0 deletions)
View changed files
📝
internal/sub/json_service.go(+2 -0)📝
internal/sub/json_service_test.go(+6 -0)📄 Description
Summary
Why
AmneziaWG uses its native
vpn://configuration format and cannot be represented by an Xray outbound. Previously, JSON subscriptions emitted an entry with noproxyoutbound for these clients.Fixes #6410
Type of change
Areas affected
How was this tested?
go test ./internal/sub -run '^(TestSubJsonServiceSkipsAmneziaWG|TestSubJsonServiceWireguard)$' -count=1Screenshots / recordings
N/A
Breaking changes
None. Unsupported AmneziaWG entries are now omitted from the Xray-only JSON subscription instead of producing invalid configurations.
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.