[PR #5171] [MERGED] fix: expose streamSettings for Tunnel inbounds to support TProxy #5802

Closed
opened 2026-11-02 04:04:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5171
Author: @rqzbeh
Created: 6/10/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei

Base: main ← Head: fix/tunnel-tproxy-support


📝 Commits (5)

  • d45cafc fix: expose streamSettings for Tunnel inbounds to support TProxy
  • ef51893 Merge branch 'main' into fix/tunnel-tproxy-support
  • d76a89e fix(ui): hide security tab for tunnel inbounds when stream is enabled
  • 94610a4 Merge branch 'main' into fix/tunnel-tproxy-support
  • 12b5543 fix(tunnel): restrict stream tab to sockopt-only and fix transportless schema

📊 Changes

6 files changed (+125 additions, -43 deletions)

View changed files

📝 frontend/src/lib/xray/inbound-link.ts (+3 -3)
📝 frontend/src/lib/xray/protocol-capabilities.ts (+1 -1)
📝 frontend/src/pages/inbounds/form/InboundFormModal.tsx (+45 -24)
📝 frontend/src/schemas/protocols/stream/index.ts (+12 -1)
📝 frontend/src/test/__snapshots__/protocol-capabilities.test.ts.snap (+14 -14)
📝 frontend/src/test/inbound-form-adapter.test.ts (+50 -0)

📄 Description

��## Summary

Exposes the streamSettings configuration tab for Tunnel (dokodemo-door) inbounds in the UI, enabling users to configure TProxy settings.

Why

Closes #5166. Xray's dokodemo-door inbound accepts streamSettings, which is required to set up the transparent proxy (sockopt.tproxy) described in XTLS documentation. Previously, the unnel protocol was missing from STREAM_PROTOCOLS, causing the Stream tab to be hidden in the UI.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

  1. Updated rontend/src/lib/xray/protocol-capabilities.ts to include unnel in STREAM_PROTOCOLS.
  2. Ran
    pm run test -- -u to update UI snapshots, confirming the stream tab renders correctly for unnel fields.
  3. Ran
    pm run lint,
    pm run typecheck, and
    pm run build which all passed successfully.
  4. When creating a Tunnel inbound, the Stream tab is now visible and allows modifying the TProxy mode within the Sockopt section.

Screenshots / recordings

N/A

Breaking changes

None.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes:
    pm run lint,
    pm run typecheck, and
    pm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5171 **Author:** [@rqzbeh](https://github.com/rqzbeh) **Created:** 6/10/2026 **Status:** ✅ Merged **Merged:** 6/11/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/tunnel-tproxy-support` --- ### 📝 Commits (5) - [`d45cafc`](https://github.com/MHSanaei/3x-ui/commit/d45cafca88699ea3cc1580300da5385dcefcfd9d) fix: expose streamSettings for Tunnel inbounds to support TProxy - [`ef51893`](https://github.com/MHSanaei/3x-ui/commit/ef51893bc46191e35decfd48442c46ebef597583) Merge branch 'main' into fix/tunnel-tproxy-support - [`d76a89e`](https://github.com/MHSanaei/3x-ui/commit/d76a89ec5124d432c5cd823fb34260fa8ee244c2) fix(ui): hide security tab for tunnel inbounds when stream is enabled - [`94610a4`](https://github.com/MHSanaei/3x-ui/commit/94610a4f786f9aeeefbc1f17d677bae3f523fb8c) Merge branch 'main' into fix/tunnel-tproxy-support - [`12b5543`](https://github.com/MHSanaei/3x-ui/commit/12b5543959ebe6c2e58245aad7a8a275a3ec4102) fix(tunnel): restrict stream tab to sockopt-only and fix transportless schema ### 📊 Changes **6 files changed** (+125 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/lib/xray/inbound-link.ts` (+3 -3) 📝 `frontend/src/lib/xray/protocol-capabilities.ts` (+1 -1) 📝 `frontend/src/pages/inbounds/form/InboundFormModal.tsx` (+45 -24) 📝 `frontend/src/schemas/protocols/stream/index.ts` (+12 -1) 📝 `frontend/src/test/__snapshots__/protocol-capabilities.test.ts.snap` (+14 -14) 📝 `frontend/src/test/inbound-form-adapter.test.ts` (+50 -0) </details> ### 📄 Description ��## Summary Exposes the streamSettings configuration tab for Tunnel (dokodemo-door) inbounds in the UI, enabling users to configure TProxy settings. ## Why Closes #5166. Xray's dokodemo-door inbound accepts streamSettings, which is required to set up the transparent proxy (sockopt.tproxy) described in XTLS documentation. Previously, the unnel protocol was missing from STREAM_PROTOCOLS, causing the Stream tab to be hidden in the UI. ## Type of change - [x] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? 1. Updated rontend/src/lib/xray/protocol-capabilities.ts to include unnel in STREAM_PROTOCOLS. 2. Ran pm run test -- -u to update UI snapshots, confirming the stream tab renders correctly for unnel fields. 3. Ran pm run lint, pm run typecheck, and pm run build which all passed successfully. 4. When creating a Tunnel inbound, the Stream tab is now visible and allows modifying the TProxy mode within the Sockopt section. ## Screenshots / recordings N/A ## Breaking changes None. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] go build ./... and the test suite pass locally. - [x] For frontend changes: pm run lint, pm run typecheck, and pm run build pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5802
No description provided.