mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6395] [MERGED] fix(sub): restore compatible SOCKS subscription inbound #6249
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#6249
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/6395
Author: @dawNotPoi
Created: 9/3/2026
Status: ✅ Merged
Merged: 9/3/2026
Merged by: @MHSanaei
Base:
main← Head:fix/6379-ios-json-subscription-socks📝 Commits (1)
d890a17fix(sub): restore compatible SOCKS subscription inbound📊 Changes
8 files changed (+57 additions, -6 deletions)
View changed files
📝
docs/content/docs/en/config/subscription.mdx(+1 -1)📝
docs/content/docs/fa/config/subscription.mdx(+1 -1)📝
docs/content/docs/ru/config/subscription.mdx(+1 -1)📝
docs/content/docs/zh/config/subscription.mdx(+1 -1)📝
docs/lib/xray/subscription.test.ts(+13 -0)📝
docs/lib/xray/subscription.ts(+1 -1)📝
internal/sub/default.json(+1 -1)📝
internal/sub/json_service_test.go(+38 -0)📄 Description
Summary
socksprotocol for the JSON subscription's local inbound on port 10808 while preserving its existingmixedtag, UDP setting, and the separate HTTP inbound.Why
Happ 5.6.0 on iOS can import the generated JSON subscription but leaves every entry connected with zero traffic when the local inbound uses the
mixedprotocol alias. The reporter isolated the cause with a single-variable test: changing onlymixedtosocksrestored traffic, while removingfakednsdid not.The pinned Xray core accepts
sockswith the same server configuration and HTTP fallback. Keeping themixedtag avoids breaking custom rules that may reference the existing inbound tag.Closes #6379
Type of change
Areas affected
How was this tested?
mixedand passed after the protocol change.go test ./internal/sub -run TestDefaultJSONUsesCompatibleLocalInbounds -count=1go build ./...make test-gocd docs && pnpm test(12 files, 106 tests)cd docs && pnpm typecheckcd docs && pnpm lintcd docs && pnpm format:checkThe issue reporter performed the iOS device A/B test; local tests verify that both generated subscription implementations now emit that exact working configuration while retaining the existing tag, UDP support, and HTTP inbound.
Screenshots / recordings
N/A — no UI layout or styling changes.
Breaking changes
None. Ports, tags, routing references, and inbound settings remain unchanged; only the local JSON subscription protocol identifier changes to the compatible standard name.
Checklist
go build ./...and the test suite pass locally.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.