[GH-ISSUE #5353] [Bug]: Outbound import does not parse all parameters #3751

Closed
opened 2026-10-31 20:34:42 +07:00 by bsakaguchi · 2 comments
Owner

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

  1. Copy inbound vless:// link
  2. Paste in outbound section and press Import

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 1. Copy inbound vless:// link 2. Paste in outbound section and press Import ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:34:42 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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 xmux inside the extra=<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 the extra blob and applies scalar fields (strings, numbers, booleans) and the headers object, but does not extract the nested xmux object. 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 parseHysteria2Link function 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.

<!-- gh-comment-id:4710092796 --> @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 `xmux` inside the `extra=<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 the `extra` blob and applies scalar fields (strings, numbers, booleans) and the `headers` object, but does not extract the nested `xmux` object. 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 `parseHysteria2Link` function 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.*
Author
Owner

@MHSanaei commented on GitHub (Jun 15, 2026):

Fixed: the outbound link parser now extracts the nested xmux (and downloadSettings) object from the extra= 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).

<!-- gh-comment-id:4710407731 --> @MHSanaei commented on GitHub (Jun 15, 2026): Fixed: the outbound link parser now extracts the nested `xmux` (and `downloadSettings`) object from the `extra=` 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).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3751
No description provided.