[GH-ISSUE #5328] [Feature]: TLSHello xhttp fragmentation subscribe #3734

Closed
opened 2026-10-31 20:34:34 +07:00 by bsakaguchi · 1 comment
Owner

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

Please add fragmentation to the vless tlshello subscription, like in happ. It's a must-have in Russia right now.

Describe the solution you'd like

?fragment=100-200,10-20,tlshello - if you add this to the vless:// link, it will work, but I have a lot of relatives. I can't add it to everyone.

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @to03 on GitHub (Jun 14, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5328 ### Is your feature request related to a problem? Please add fragmentation to the vless tlshello subscription, like in happ. It's a must-have in Russia right now. ### Describe the solution you'd like ?fragment=100-200,10-20,tlshello - if you add this to the vless:// link, it will work, but I have a lot of relatives. I can't add it to everyone. ### 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? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:34:34 +07:00
Author
Owner

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

The panel already has partial support for this, but there is a gap between what exists and what you are asking for.

What is currently supported

The inbound editor exposes a "Final Mask" (finalmask) section. Under TCP masks you can add an entry with type fragment and set packets to tlshello, plus a length and delay range. When that is configured on an inbound:

  • Share links (vless://, trojan://, etc.) generated by the subscription endpoint include the finalmask payload as an fm=<json> query parameter — confirmed in internal/sub/service.go (applyFinalMaskParams) and frontend/src/lib/xray/inbound-link.ts (serializeFinalMask).
  • JSON subscriptions include the full finalmask object inside streamSettings — confirmed in internal/sub/json_service.go (applyGlobalFinalMask, streamData).
  • There is also a panel-wide subJsonFinalMask setting (internal/web/service/setting.go:769) that overlays a finalmask onto every JSON subscription config, so you can apply fragment globally without editing each inbound.

What is not currently supported

The compact ?fragment=<length>,<interval>,<packets> URI query parameter format you described is not generated by the subscription service. The panel uses the fm=<json> encoding instead. If the clients your relatives use (e.g. happ) only parse the compact fragment= form and not fm=, the existing mechanism will not help them.

There is also no equivalent of subJsonFinalMask for plain share links — the global override applies to the JSON subscription format only. Share links pick up fragment settings only from the inbound's own finalmask configuration.

Summary of the gap

Need Current state
Per-inbound fragment in share links Supported via finalmask → fm=<json>
Global fragment applied to all share links Not supported
Compact ?fragment=length,interval,packets URI format Not generated

This request is valid as a feature enhancement: either adding a global subscription-level fragment override for share links, or emitting the compact fragment= parameter alongside or instead of fm=. A PR implementing either approach would be welcome.

If you want a workaround today and your clients understand fm=<json> (v2rayN, sing-box, and others do): open each inbound, add a TCP Final Mask entry with type=fragment, packets=tlshello, and your preferred length/delay ranges, then re-share the subscription link.

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

<!-- gh-comment-id:4703106012 --> @github-actions[bot] commented on GitHub (Jun 14, 2026): The panel already has partial support for this, but there is a gap between what exists and what you are asking for. **What is currently supported** The inbound editor exposes a "Final Mask" (finalmask) section. Under TCP masks you can add an entry with type `fragment` and set `packets` to `tlshello`, plus a `length` and `delay` range. When that is configured on an inbound: - Share links (vless://, trojan://, etc.) generated by the subscription endpoint include the finalmask payload as an `fm=<json>` query parameter — confirmed in `internal/sub/service.go` (`applyFinalMaskParams`) and `frontend/src/lib/xray/inbound-link.ts` (`serializeFinalMask`). - JSON subscriptions include the full `finalmask` object inside `streamSettings` — confirmed in `internal/sub/json_service.go` (`applyGlobalFinalMask`, `streamData`). - There is also a panel-wide `subJsonFinalMask` setting (`internal/web/service/setting.go:769`) that overlays a finalmask onto every JSON subscription config, so you can apply fragment globally without editing each inbound. **What is not currently supported** The compact `?fragment=<length>,<interval>,<packets>` URI query parameter format you described is not generated by the subscription service. The panel uses the `fm=<json>` encoding instead. If the clients your relatives use (e.g. happ) only parse the compact `fragment=` form and not `fm=`, the existing mechanism will not help them. There is also no equivalent of `subJsonFinalMask` for plain share links — the global override applies to the JSON subscription format only. Share links pick up fragment settings only from the inbound's own finalmask configuration. **Summary of the gap** | Need | Current state | |------|---------------| | Per-inbound fragment in share links | Supported via finalmask → `fm=<json>` | | Global fragment applied to all share links | Not supported | | Compact `?fragment=length,interval,packets` URI format | Not generated | This request is valid as a feature enhancement: either adding a global subscription-level fragment override for share links, or emitting the compact `fragment=` parameter alongside or instead of `fm=`. A PR implementing either approach would be welcome. If you want a workaround today and your clients understand `fm=<json>` (v2rayN, sing-box, and others do): open each inbound, add a TCP Final Mask entry with `type=fragment`, `packets=tlshello`, and your preferred `length`/`delay` ranges, then re-share the subscription link. *This reply was generated automatically; a maintainer may follow up.*
bsakaguchi changed title from [GH-ISSUE #5328] [Feature]: TLSHello xhttp fragmentation subscribe to [GH-ISSUE #5328] [Feature]: TLSHello xhttp fragmentation subscribe 2026-11-07 20:38:21 +07:00
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#3734
No description provided.