mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5505] [Feature]: Add new XHTTP options from latest xray #3844
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#3844
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 23, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5505
Is your feature request related to a problem?
New options to support sessionID encoding:
https://github.com/XTLS/Xray-core/pull/6258
Describe the solution you'd like
Add options to XHTTP transport obfuscation dialogue
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 (Jun 23, 2026):
The changes from XTLS/Xray-core#6258 are already present in the xray-core version currently bundled by this panel (v26.6.22, commit
b99c3e56574f, merged June 9 2026). The panel UI and subscription layer have not yet been updated to match — this is a confirmed gap across several files.What changed in xray-core
PR#6258 modified
transport/internet/splithttp/config.protoandinfra/conf/transport_internet.go:sessionPlacement→sessionIDPlacementsessionKey→sessionIDKeysessionIDTable— encoding character set. Accepts a predefined name (ALPHABET,Alphabet,BASE36,Base62,HEX,alphabet,base36,hex,number) or a custom ASCII string. When set, xray-core validates that the resulting ID space exceeds 2.1 billion possibilities.sessionIDLength— session ID length as a range (e.g.16-32); start value must be greater than 0.What the panel currently does (confirmed in source)
The old field names are still used in all of the following places as of
main(HEAD):frontend/src/schemas/protocols/stream/xhttp.tslines 38–39sessionPlacement,sessionKeyfrontend/src/pages/inbounds/form/transport/xhttp.tsxlines 147–170frontend/src/pages/xray/outbounds/transport/xhttp.tsxlines 147–170internal/sub/service.goline 1734sessionPlacement,sessionKeyto the share-linkextrablobinternal/sub/clash_service.golines 407–408sessionPlacement/sessionKeyinternal/web/translation/sessionPlacementandsessionKeyBecause xray-core no longer parses
sessionPlacementorsessionKey, any inbound that was configured with a non-defaultsessionPlacementis silently broken on the currently bundled xray-core — the field is simply ignored by the engine.Scope of a fix
A PR would need to touch all of the locations above:
sessionPlacement→sessionIDPlacementandsessionKey→sessionIDKeythroughout the schema, both form files, the subscription service, the Clash service, and all translation files.sessionIDTableto the Zod schema and to the inbound (and, if appropriate, outbound) XHTTP form — a<Select>with the nine predefined values plus a free-text fallback is sufficient.sessionIDLengthto the Zod schema and form — an<Input>accepting range notation (e.g.16-32) matching the same pattern asscMaxEachPostBytes.internal/sub/service.go) and Clash service to propagate the two new fields alongside the renamed ones.The rename in step 1 is a breaking change for existing stored inbound configs: any
xhttpSettingsblob in the database that currently containssessionPlacement/sessionKeywith non-default values will need to be migrated or the user will need to re-save the inbound after the UI is updated.This reply was generated automatically; a maintainer may follow up.
@rqzbeh commented on GitHub (Jun 23, 2026):
currently working on this, PR soon
@rqzbeh commented on GitHub (Jun 23, 2026):
https://github.com/MHSanaei/3x-ui/pull/5506