mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
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#5962
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/5690
Author: @FZ1010
Created: 6/30/2026
Status: ❌ Closed
Base:
main← Head:feat/inbound-disable-flow📝 Commits (5)
6f90191feat(inbound): add DisableFlow to opt an inbound out of auto XTLS Vision605e8a9feat(inbound): DisableFlow toggle in the inbound form (frontend)a38a1bbfix(inbound): honor DisableFlow in all emitters + on toggle; regen OpenAPIc3a07f6fix(inbound): make DisableFlow durable, clamp on create, guard live confige16acf4style(inbound): drop // line comments per repo CLAUDE.md📊 Changes
38 files changed (+415 additions, -10 deletions)
View changed files
📝
frontend/public/openapi.json(+6 -0)📝
frontend/src/generated/examples.ts(+1 -0)📝
frontend/src/generated/schemas.ts(+5 -0)📝
frontend/src/generated/types.ts(+1 -0)📝
frontend/src/generated/zod.ts(+1 -0)📝
frontend/src/lib/xray/inbound-form-adapter.ts(+4 -0)📝
frontend/src/models/dbinbound.ts(+3 -0)📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+13 -0)📝
frontend/src/schemas/forms/inbound-form.ts(+1 -0)📝
frontend/src/test/inbound-form-adapter.test.ts(+30 -0)📝
internal/database/model/model.go(+2 -0)📝
internal/sub/clash_service.go(+1 -1)📝
internal/sub/clash_service_test.go(+25 -0)📝
internal/sub/json_service.go(+1 -1)📝
internal/sub/json_service_test.go(+10 -0)📝
internal/sub/service.go(+2 -2)📝
internal/sub/service_flow_test.go(+10 -0)📝
internal/web/service/client_bulk.go(+2 -1)📝
internal/web/service/client_crud.go(+1 -1)📝
internal/web/service/inbound.go(+21 -4)...and 18 more files
📄 Description
Implements approach (2) from #5689 — an inbound-level opt-out from automatic XTLS Vision (
xtls-rprx-vision) injection.Why
VLESS-over-XHTTP with vlessenc is (correctly) reported flow-capable, so a client on both a Reality inbound and a tunneled/CDN-fronted XHTTP+vlessenc inbound gets
xtls-rprx-visionon both, with no way to opt the tunnel inbound out (single client-level flow; the panel clamps per its own capability). Some deployments specifically don't want Vision on the tunneled inbound. See #5689 for the full write-up.What this does
Adds a panel-only
DisableFlowflag tomodel.Inbound(disable_flowcolumn, GORM AutoMigrate). When set, the inbound behaves as not-flow-capable without changing its transport/encryption:GetInboundOptionsreportstlsFlowCapable=false.clientWithInboundFlow) stores an empty flow for clients attached to it (soclient_inbounds.flow_overrideis"").genVlessLinknever emitsflow=for it (sub/share links stay clean).restoreVisionFlowForEligibleInboundcallers), the migration restore, and bulk flow-set all honor it.The flag is never sent to xray (panel metadata only). The default (
false) preserves all existing behavior — this is purely additive.Verification
go build ./internal/...(affected packages) — clean.go test ./internal/sub/...flow suite passes, including a newTestGenVlessLink_DisableFlowSuppressesFlow(a capable xhttp+reality+vlessenc inbound withDisableFlow=trueemits noflow=), alongside the existing positive cases.internal/web/serviceweren't run in my local env (CGO_ENABLED=0, sogo-sqlite3can't init) — they'll run in CI.Status — draft
frontend/src/pages/inbounds/…) — follow-up commit; the field is already settable via the inbound add/update API in the meantime.Marking draft pending the frontend toggle + a maintainer's nod on placement/naming (
DisableFlowvs e.g.NoFlow). Happy to adjust to fit your conventions. Closes part of #5689.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.