mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #7056] [Feature]: Import AmneziaWG links and subscriptions as outbounds #6601
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#6601
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 @lovexiaoyiyi on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7056
Is your feature request related to a problem?
Need to divert the amneziawg protocol through 3XU
Describe the solution you'd like
The current subscription links and outbound rules do not support importing amneziawa protocol links, and subscription links are also not supported
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Nov 3, 2026):
This is a valid feature request. The panel can already serve AmneziaWG through subscriptions and has an AmneziaWG outbound you configure by hand. What it cannot do is import an AmneziaWG link, either pasted into the outbound form or pulled from an outbound subscription URL. That import path only understands vmess, vless, trojan, ss, hysteria2 and wireguard.
What the current code does:
vpn://link in the AmneziaVPN app's format (internal/sub/service.go:1248-1274):amneziawg(frontend/src/pages/xray/outbounds/protocols/amneziawg.tsx). Then copy the keys, endpoint and obfuscation parameters from your.conffile into the form. This is the workaround for now.ParseSubscriptionBody(internal/util/link/outbound.go:68), handles only these schemes and rejects everything else (internal/util/link/outbound.go:165-181): Lines it cannot parse are skipped without any message (outbound.go:69-71), so an outbound subscription made only ofvpn://lines produces no outbounds at all. The link box in the outbound form has the same limit (frontend/src/lib/xray/outbound-link-parser.ts:859-868): its parser chain ends atparseWireguardLink.So even a
vpn://link from another 3x-ui panel cannot be imported as an outbound today. Adding this means adding avpn://parser that produces anamneziawgoutbound, in both the Go parser and the frontend parser.I changed the title to say what is missing (import of AmneziaWG links and subscriptions as outbounds) and fixed the "amneziawa" typo. The old title was "[Feature]: Support amneziawa protocol subscription".
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.