mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5526] [Feature]: Add xhttpSettings to Hosts #3856
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#3856
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 @FDeghy on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5526
Is your feature request related to a problem?
No, it's not a problem.
Describe the solution you'd like
Thanks for the great updates and features.
If possible, it would be great to add XHTTP settings to the recently introduced Hosts section. The Advanced subsection is already very useful, and having access to XHTTP parameters such as
downloadSettingsandxmuxwould make it even more powerful by allowing users to customize and fine-tune these settings directly from the UI.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 24, 2026):
This is a valid gap. The
Hostmodel (internal/database/model/model.go, lines 727–775) currently carriesMuxParams,SockoptParams, andFinalMaskas free-JSON override fields applied at subscription-generation time, but there is no equivalent field for XHTTP transport settings.When a subscription link is built for an XHTTP inbound, the service (
internal/sub/service.go, lines 1097–1103) readsxhttpSettingsexclusively from the inbound's stream config. The host's own fields cannot currently overridedownloadSettings,xmux, or any otherxhttpSettingskey per-host endpoint.For context,
downloadSettingsandxmuxare already recognised as outbound/client-side fields in the codebase —buildXhttpExtra()(line 1779) serialises them into share links, andStripInboundXhttpClientFields()(lines 232–269) strips them from the inbound config before passing it to Xray-core, since those keys belong on the client side, not the listener side. Adding them to Hosts would let users set per-endpoint client-side XHTTP overrides without duplicating inbounds.What an implementation would require:
XhttpParams) toHostininternal/database/model/model.go, with a corresponding database migration (seeinternal/database/host_migration_test.gofor the migration test pattern).internal/sub/service.go) — after the per-host path/mode overrides are applied, merge in the host'sXhttpParamsJSON (particularlyxmuxanddownloadSettings) into the share link output, following the pattern used forMuxParamsandFinalMask.frontend/src/schemas/api/host.ts) — addxhttpParamsalongside the existingmuxParams,sockoptParams,finalMaskfields.frontend/src/pages/hosts/HostFormModal.tsx) — add a new "XHTTP" tab inside the existing Advanced subsection, similar in structure to howHostMuxFormandHostSockoptFormare wired in. The existing outbound XHTTP form (frontend/src/pages/xray/outbounds/transport/xhttp.tsx) can serve as a reference for which fields to expose.No duplicate was found among existing issues.
This reply was generated automatically; a maintainer may follow up.
@viberbread commented on GitHub (Nov 4, 2026):
How in the world is this not implemented yet?