[PR #5139] [CLOSED] fix(inbound): support fallbacks for raw transport #5791

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5139
Author: @rqzbeh
Created: 6/9/2026
Status: ❌ Closed

Base: main ← Head: fix/fallback-raw-transport


📝 Commits (2)

  • 9ee6a8d fix(inbound): support fallbacks for raw transport
  • 26e7329 Merge branch 'main' into fix/fallback-raw-transport

📊 Changes

2 files changed (+14 additions, -6 deletions)

View changed files

📝 frontend/src/pages/inbounds/form/InboundFormModal.tsx (+1 -1)
📝 web/service/inbound.go (+13 -5)

📄 Description

Summary

This PR fixes an issue where the Fallbacks card is not displayed in the frontend, and fallbacks are not generated in the backend, for VLESS/Trojan inbounds using the raw transport with TLS/Reality.

Why

Xray-core's raw transport functions identically to tcp at the protocol layer, and fully supports fallback routing. The panel's conditions for showing and injecting fallbacks currently explicitly check network === 'tcp', which excludes users who configured raw transport and causes them to lose access to the fallbacks UI. This resolves Issue #5136.

Closes #5136.

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?

  • Setup an inbound with VLESS + RAW + TLS.
  • Verify the Fallbacks Card appears and functions as expected in the UI.
  • Save the inbound with a fallback destination (e.g. 8080).
  • Check the generated Xray JSON configuration (config.json via backend) to confirm the fallbacks block was correctly injected into the inbound settings.
  • Ensure the frontend tests still pass successfully.

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: npm run lint, npm run typecheck, and npm 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/5139 **Author:** [@rqzbeh](https://github.com/rqzbeh) **Created:** 6/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/fallback-raw-transport` --- ### 📝 Commits (2) - [`9ee6a8d`](https://github.com/MHSanaei/3x-ui/commit/9ee6a8d342a5c3c76efe6efb48076eef3bc0ccc2) fix(inbound): support fallbacks for raw transport - [`26e7329`](https://github.com/MHSanaei/3x-ui/commit/26e73295c84ac0eddd4e8e151dae9b226719499b) Merge branch 'main' into fix/fallback-raw-transport ### 📊 Changes **2 files changed** (+14 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/inbounds/form/InboundFormModal.tsx` (+1 -1) 📝 `web/service/inbound.go` (+13 -5) </details> ### 📄 Description ## Summary This PR fixes an issue where the Fallbacks card is not displayed in the frontend, and fallbacks are not generated in the backend, for VLESS/Trojan inbounds using the `raw` transport with TLS/Reality. ## Why Xray-core's `raw` transport functions identically to `tcp` at the protocol layer, and fully supports fallback routing. The panel's conditions for showing and injecting fallbacks currently explicitly check `network === 'tcp'`, which excludes users who configured `raw` transport and causes them to lose access to the fallbacks UI. This resolves Issue #5136. Closes #5136. ## 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) - [x] Backend (API endpoints, login, settings) - [x] 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? - Setup an inbound with VLESS + RAW + TLS. - Verify the Fallbacks Card appears and functions as expected in the UI. - Save the inbound with a fallback destination (e.g. 8080). - Check the generated Xray JSON configuration (`config.json` via backend) to confirm the fallbacks block was correctly injected into the inbound settings. - Ensure the frontend tests still pass successfully. ## Screenshots / recordings N/A ## Breaking changes None ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (when applicable). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [ ] 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:06 +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#5791
No description provided.