mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3991] [CLOSED] fix(sub): support Reality params for fallback inbounds via externalProxy #5577
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#5577
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/3991
Author: @nnemirovsky
Created: 4/2/2026
Status: ❌ Closed
Base:
main← Head:fix/fallback-inbound-subscription📝 Commits (2)
ba81941fix(sub): support Reality params for fallback inbounds via externalProxy0bc001bfeat(sub): add sni override field to externalProxy📊 Changes
2 files changed (+82 additions, -52 deletions)
View changed files
📝
sub/subService.go(+80 -50)📝
web/assets/js/model/inbound.js(+2 -2)📄 Description
Summary
externalProxyoverrides security to"reality"viaforceTls. Previously these params were only read whensecurity == "reality", which meant fallback inbounds withsecurity: "none"couldn't generate correct subscription links even with externalProxy.snifield toexternalProxyentries to override the randomly selected serverName. This is needed when an inbound has extra serverNames for fallback routing (e.g., MTProto via VLESS fallback) that should not appear in client subscription links.genAllLinkscrash (TypeError: undefined is not an object (evaluating 'x.length')) when remarkModel contains characters without a corresponding entry in the orders map.Use case
When using VLESS Reality fallbacks to multiplex multiple services on port 443 (e.g., XHTTP + MTProto), the fallback target inbound must have
security: "none"since the outer Reality inbound already handles TLS. Without this fix, subscription links for such inbounds either crash the UI or generate links without Reality params.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.