mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4365] [MERGED] fix(sub): include xhttp mode in extra JSON for karing compatibility #5675
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#5675
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4365
Author: @abdalrahmanx9
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @MHSanaei
Base:
main← Head:fix/xhttp-mode-in-extra📝 Commits (1)
b47daa0fix(sub): include xhttp mode in extra JSON for karing compatibility📊 Changes
3 files changed (+16 additions, -0 deletions)
View changed files
📝
frontend/src/models/inbound.js(+4 -0)📝
sub/subJsonService.go(+8 -0)📝
sub/subService.go(+4 -0)📄 Description
Summary
modewhenxPaddingBytesorscMaxEachPostBytesis configuredCloses #4364
Problem
When an xhttp inbound has
xPaddingBytesorscMaxEachPostBytesset, the share URLincludes an
+ "extra=" + @query param containing bidirectional SplitHTTP fields.karing reads exclusively from
+ "extra" + @for transport settings, but+ "mode" + @was onlyemitted as a flat URL param (
+ "mode=packet-up" + @), never inside+ "extra" + @. This silentlydropped the mode, breaking the connection entirely.
Changes
sub/subService.go: IncludemodeinbuildXhttpExtra()so it is available in the+ "extra" + @JSON blob alongside other bidirectional SplitHTTP fieldsfrontend/src/models/inbound.js: Same fix in the panel share-link generator for paritysub/subJsonService.go: Addxhttpcase tostreamData()to stripacceptProxyProtocoland server-only fields (noSSEHeader,scMaxBufferedPosts,scStreamUpServerSecs,serverMaxHeaderBytes) from JSON subscription configs, matching how tcp/ws/httpupgrade are already sanitized🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.