[GH-ISSUE #6819] [Bug]: masqu not add to client #4541

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

Originally created by @sinath72 on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6819

Describe the bug

i was add a masque inbound after lateat update and attach to a client but not showing in client subscription

How to reproduce the problem

1- go to inbounds
2- add masque inbound with tls & utls chrome alpn h2,h3,http/1.1 sniffing on http quic tls fake dns
3- get save
4- attach to client
5- update subscription but not showing

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.10.0

Xray-core version

26.10.10

How did you install 3x-ui?

install.sh script

Operating system

ubuntu 20.04

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?

No response

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 @sinath72 on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6819 ### Describe the bug i was add a masque inbound after lateat update and attach to a client but not showing in client subscription ### How to reproduce the problem 1- go to inbounds 2- add masque inbound with tls & utls chrome alpn h2,h3,http/1.1 sniffing on http quic tls fake dns 3- get save 4- attach to client 5- update subscription but not showing ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.10.0 ### Xray-core version 26.10.10 ### How did you install 3x-ui? install.sh script ### Operating system ubuntu 20.04 ### 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? _No response_ ### 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:40:23 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 14, 2026):

This looks like intended behaviour, not a bug. A MASQUE inbound never appears in the normal (raw/base64) subscription or in the Clash subscription, because MASQUE has no share-link format. It is delivered only through the JSON subscription, and that is turned off by default.

What to do:

  1. In the panel, open the subscription settings and enable JSON subscription (setting subJsonEnable, default "false"; its path is subJsonPath, default /json/).
  2. In your client app, import the JSON subscription URL instead of the normal one. Your MASQUE inbound comes through as a masque outbound that logs in with the client's email and password.
  3. The client app needs an Xray-core build that supports the masque outbound. An older core will reject the config even when the subscription contains it.

If the MASQUE entry is still missing from the JSON subscription, please reply with:

  1. The raw JSON the JSON subscription URL returns. Redact the server address and passwords, but keep the outbounds list.
  2. Whether the inbound is enabled and whether Exclude from subscription is set on it.

With those I can tell whether something in the JSON path is dropping it.

I changed the title from "[Bug]: masqu not add to client" so it states the problem more clearly.

Verdict:        Not a bug (expected behaviour)
Severity:       N/A
Confidence:     Medium (the code path is confirmed; the reporter did not say which subscription format they checked)
Root cause:     None. SubService.GetLink (internal/sub/service.go:822-847) has no "masque" case and returns "", by design.
                MASQUE is generated only in SubJsonService (internal/sub/json_service.go:670-671 -> genMasque at :1024).
Same class:     Clash: internal/sub/clash_service.go has no masque handling, and the docs say there is no Clash entry, also by design.
Already fixed:  Not applicable. MASQUE (with JSON-sub support) shipped in b04039c2 "feat(xray): add the MASQUE protocol and transport", first in v3.10.0.
Duplicate of:   None
Evidence:       internal/sub/service.go:689  inbounds.protocol in (...,'tuic','masque'), so the subId query does return MASQUE inbounds
                internal/sub/service.go:843-846  case "tuic": return s.genTuicLink(...) } return "", with no masque link
                internal/sub/json_service.go:670  case "masque": newOutbounds = append(newOutbounds, s.genMasque(inbound, newStream, client))
                internal/sub/masque_test.go:20  "MASQUE has no share-link format, so the JSON subscription is the only way a client gets one"
                internal/web/service/setting.go:104  "subJsonEnable": "false"
                docs/content/docs/en/config/masque.mdx:23-25  "MASQUE inbounds get no link, QR code or Clash entry. Clients get a ready-to-import config from the JSON subscription"
Not determined: Whether the reporter looked at the raw or the JSON subscription. The JSON subscription output would settle it.

Docs: MASQUE

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:6161330253 --> @github-actions[bot] commented on GitHub (Oct 14, 2026): This looks like intended behaviour, not a bug. A MASQUE inbound never appears in the normal (raw/base64) subscription or in the Clash subscription, because MASQUE has no share-link format. It is delivered **only through the JSON subscription**, and that is turned off by default. What to do: 1. In the panel, open the subscription settings and enable **JSON subscription** (setting `subJsonEnable`, default `"false"`; its path is `subJsonPath`, default `/json/`). 2. In your client app, import the **JSON** subscription URL instead of the normal one. Your MASQUE inbound comes through as a `masque` outbound that logs in with the client's email and password. 3. The client app needs an Xray-core build that supports the `masque` outbound. An older core will reject the config even when the subscription contains it. If the MASQUE entry is still missing from the **JSON** subscription, please reply with: 1. The raw JSON the JSON subscription URL returns. Redact the server address and passwords, but keep the `outbounds` list. 2. Whether the inbound is enabled and whether **Exclude from subscription** is set on it. With those I can tell whether something in the JSON path is dropping it. I changed the title from "[Bug]: masqu not add to client" so it states the problem more clearly. ``` Verdict: Not a bug (expected behaviour) Severity: N/A Confidence: Medium (the code path is confirmed; the reporter did not say which subscription format they checked) Root cause: None. SubService.GetLink (internal/sub/service.go:822-847) has no "masque" case and returns "", by design. MASQUE is generated only in SubJsonService (internal/sub/json_service.go:670-671 -> genMasque at :1024). Same class: Clash: internal/sub/clash_service.go has no masque handling, and the docs say there is no Clash entry, also by design. Already fixed: Not applicable. MASQUE (with JSON-sub support) shipped in b04039c2 "feat(xray): add the MASQUE protocol and transport", first in v3.10.0. Duplicate of: None Evidence: internal/sub/service.go:689 inbounds.protocol in (...,'tuic','masque'), so the subId query does return MASQUE inbounds internal/sub/service.go:843-846 case "tuic": return s.genTuicLink(...) } return "", with no masque link internal/sub/json_service.go:670 case "masque": newOutbounds = append(newOutbounds, s.genMasque(inbound, newStream, client)) internal/sub/masque_test.go:20 "MASQUE has no share-link format, so the JSON subscription is the only way a client gets one" internal/web/service/setting.go:104 "subJsonEnable": "false" docs/content/docs/en/config/masque.mdx:23-25 "MASQUE inbounds get no link, QR code or Clash entry. Clients get a ready-to-import config from the JSON subscription" Not determined: Whether the reporter looked at the raw or the JSON subscription. The JSON subscription output would settle it. ``` Docs: [MASQUE](https://github.com/MHSanaei/3x-ui/blob/main/docs/content/docs/en/config/masque.mdx) *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
Author
Owner

@sinath72 commented on GitHub (Oct 14, 2026):

inbound added in json file for download but not added to configs, and i was when add json subscription link to v2ray client not showing

<!-- gh-comment-id:6161680877 --> @sinath72 commented on GitHub (Oct 14, 2026): inbound added in json file for download but not added to configs, and i was when add json subscription link to v2ray client not showing
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#4541
No description provided.