mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5540] [Bug]: Subscription provided outbounds cannot be set as dialer proxy #3867
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#3867
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?
Originally created by @shadowpercifal on GitHub (Jun 24, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5540
Describe the bug
When editing outbound it is not possible to select subscription provided outbounds, providing id manually results in behaviour similar to "blocked"
panel installation: build for windows from releases page
How to reproduce the problem
Provided you have added a subsciption in outbounds page
Only local outbounds will be present
Expected behavior
Dropdown shows more outbounds
Actual behavior
Dropdown only shows local ones (blocked, freedom and custom made)
Relevant logs
Screenshots
3x-ui version
3.4.0
Xray-core version
No response
How did you install 3x-ui?
Manual build from source
Operating system
Windows 11
Which parts of the panel are affected?
Frontend (UI / panel pages)
Browser (only if it is a UI bug)
Chromium 146
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@github-actions[bot] commented on GitHub (Jun 24, 2026):
The bug is confirmed by the source code. The "Dialer Proxy" dropdown in the outbound edit form only shows local (panel-defined) outbound tags because subscription outbound tags are never included in the option list passed to that dropdown.
Root cause
In
frontend/src/pages/xray/outbounds/OutboundsTab.tsx, bothopenAdd()(around line 158) andopenEdit()(around line 169) build theexistingTagsstate fromtemplateSettings?.outboundsonly — these are the locally configured outbounds. That list is passed asexistingTagstoOutboundFormModal, which passes it asoutboundTagstoSockoptForm, where it is used to populatedialerProxyOptionsfor the dropdown:The
subscriptionOutboundsprop is available inOutboundsTabbut is used only for the read-only subscription display (SubscriptionOutboundscomponent), never to feed its tags intoexistingTags.Contrast with the host form
frontend/src/pages/hosts/json-forms/HostSockoptForm.tsxsolves this correctly — it callsuseOutboundTagGroups({ excludeBlackhole: true }), which readsdata?.subscriptionOutboundTagsalongside local outbound tags, and passes the combined list to the sameSockoptForm. The outbound edit form does not do the equivalent.Contributing gap in
XrayPage.tsxXrayPage.tsxalready computessubscriptionOutboundTagsfromuseXraySettingand passes it toRoutingTabandBalancersTab, but does not pass it toOutboundsTab. TheOutboundsTabPropsinterface does not declare that field at all.Fix sketch (for contributors)
The simplest repair is:
subscriptionOutboundTags?: string[]prop toOutboundsTabProps.XrayPage.tsxalongside the existingsubscriptionOutboundsprop (the value is already available there).openAdd()andopenEdit(), append the subscription tags toexistingTags: (ForopenEdit, the currently-edited outbound tag should still be excluded from the local slice to avoid a false duplicate-tag warning, but subscription tags do not need the same exclusion since they are not editable.)An alternative is to replace the manual tag collection with
useOutboundTagGroups()directly insideOutboundFormModal, matching the pattern used byHostSockoptForm.Manual workaround
Until this is fixed, you can open the JSON tab of the outbound form, set
streamSettings.sockopt.dialerProxyto the subscription outbound's tag string, then switch back to Basic. The current value ofdialerProxyis always injected intodialerProxyOptions, so an existing value will appear in the dropdown on subsequent edits.This reply was generated automatically; a maintainer may follow up.
@MHSanaei commented on GitHub (Jun 24, 2026):
Fixed in commit
e2d25d0a.Subscription-provided outbounds now appear in the Dialer Proxy dropdown when editing an outbound.
subscriptionOutboundTagsis threaded fromXrayPageintoOutboundsTab, which builds a dedicated dialer-proxy list (local outbounds + subscription tags) and passes it to the form. Theblackholeoutbound ("blocked") is excluded from the dropdown since chaining a dialer through it just drops traffic, matching the existing host-form behavior. Tag-uniqueness validation is unchanged, so it still covers the blackhole tag.