mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5353] [Bug]: Outbound import does not parse all parameters #3751
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#3751
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 @ilya-practicum on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5353
Describe the bug
Not all parameters are parsed and applied. For example, xmux parameters are not parsed from vless:// links. That issues applies for outbound subscriptions also. Not sure about other params.
Outbound section has also masquerade configuration for hysteria2, not sure if it should exist in outbound at all but it is not populated properly also
How to reproduce the problem
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.3.1
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Debian 13
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 15, 2026):
Both parts of this report describe confirmed gaps in the outbound link-import path, verified in the v3.3.1 source.
xmux parameters silently dropped on link import
The inbound share-link generator (internal/sub/service.go line 1729) includes
xmuxinside theextra=<json>query parameter when generating a vless:// link for an xhttp inbound that has xmux configured. The outbound link parser (frontend/src/lib/xray/outbound-link-parser.ts,applyXhttpStringFromParams) decodes theextrablob and applies scalar fields (strings, numbers, booleans) and theheadersobject, but does not extract the nestedxmuxobject. xmux is therefore silently discarded after import. The parser's own opening comment (lines 12-16) acknowledges this as a known limitation at the time the parser was written.Workaround: after importing the link, open the outbound edit form, go to the transport (xhttp) tab, enable xmux, and fill in the values manually.
Hysteria2 masquerade in the outbound form
The
parseHysteria2Linkfunction does not populate masquerade fields, and it cannot: the hysteria2:// URI scheme carries no masquerade encoding in its query parameters. The schema comment (frontend/src/schemas/protocols/stream/hysteria.ts line 9) notes that masquerade is an inbound concept. Its presence in the outbound form is a UI scope question separate from the link parser.For masquerade to survive an outbound import, use the JSON tab: the subscription JSON service (internal/sub/json_service.go line 454) does copy masquerade from inbound stream settings into the outbound JSON output, so pasting that JSON will populate the field. Link import will not carry masquerade regardless of any parser change.
This reply was generated automatically; a maintainer may follow up.
@MHSanaei commented on GitHub (Jun 15, 2026):
Fixed: the outbound link parser now extracts the nested
xmux(anddownloadSettings) object from theextra=JSON blob that share links carry, so xmux survives import into the outbound XMUX sub-form.Note on the hysteria2 masquerade part: the hysteria2:// URI scheme has no masquerade encoding, so link import can't carry it by design. Masquerade does round-trip through the JSON tab (the subscription JSON service copies it from the inbound stream settings).