[PR #7099] feat(xray): warn when a Dialer Proxy tag matches no outbound #6651

Open
opened 2026-11-07 21:42:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/7099
Author: @mjbe71
Created: 11/7/2026
Status: 🔄 Open

Base: main ← Head: fix/dialer-proxy-missing-outbound-warning


📝 Commits (2)

  • 957b457 feat(xray): warn when a Dialer Proxy tag matches no outbound
  • 3835c7c fix(xray): limit the Dialer Proxy warning to the outbound form

📊 Changes

17 files changed (+111 additions, -3 deletions)

View changed files

📝 frontend/src/pages/xray/outbounds/OutboundFormModal.tsx (+1 -0)
📝 frontend/src/pages/xray/outbounds/transport/sockopt.tsx (+19 -3)
➕ frontend/src/test/dialer-proxy-warning.test.tsx (+77 -0)
📝 internal/web/translation/ar-EG.json (+1 -0)
📝 internal/web/translation/en-US.json (+1 -0)
📝 internal/web/translation/es-ES.json (+1 -0)
📝 internal/web/translation/fa-IR.json (+1 -0)
📝 internal/web/translation/id-ID.json (+1 -0)
📝 internal/web/translation/ja-JP.json (+1 -0)
📝 internal/web/translation/pt-BR.json (+1 -0)
📝 internal/web/translation/ru-RU.json (+1 -0)
📝 internal/web/translation/sk-SK.json (+1 -0)
📝 internal/web/translation/tr-TR.json (+1 -0)
📝 internal/web/translation/uk-UA.json (+1 -0)
📝 internal/web/translation/vi-VN.json (+1 -0)
📝 internal/web/translation/zh-CN.json (+1 -0)
📝 internal/web/translation/zh-TW.json (+1 -0)

📄 Description

Summary

The Dialer Proxy select keeps showing a tag even when no outbound with that tag exists (for example after a hand edit of the raw config, or when a subscription outbound went away). The value then chains to nothing, with no hint in the UI.

This shows a non-blocking warning under the field when the selected tag is not among the available outbound tags.

Details

  • SockoptForm gets an opt-in warnMissingDialerProxy prop. Only the outbound form enables it, where the tag list is the set the dial resolves against.
  • The warning only appears once a real tag list is known, so "still loading" is never read as "no outbound exists".
  • The host form is unchanged: a host's Dialer Proxy resolves in the subscriber's client config, so the server outbound list says nothing about it.
  • New i18n key pages.xray.outboundForm.dialerProxyMissing, added to all 14 locales.

Behaviour change

None beyond the warning. The value is still kept and saved as before; nothing is blocked or cleared.

Tests

  • New dialer-proxy-warning.test.tsx (written first, red, then green): warns for a dangling tag; quiet for a known tag, an empty value, and an unknown tag list.
  • The host form stays silent even for a tag missing from the server list, and a caller that does not opt in gets no warning.
  • Frontend unit and component suites, tsc, oxlint, oxfmt pass.

🔄 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/7099 **Author:** [@mjbe71](https://github.com/mjbe71) **Created:** 11/7/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/dialer-proxy-missing-outbound-warning` --- ### 📝 Commits (2) - [`957b457`](https://github.com/MHSanaei/3x-ui/commit/957b4578a8fb39a7dfd583ec151db2f1add5c7b8) feat(xray): warn when a Dialer Proxy tag matches no outbound - [`3835c7c`](https://github.com/MHSanaei/3x-ui/commit/3835c7cc9834f0da4fcb24e5401cd82f05beffc6) fix(xray): limit the Dialer Proxy warning to the outbound form ### 📊 Changes **17 files changed** (+111 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/xray/outbounds/OutboundFormModal.tsx` (+1 -0) 📝 `frontend/src/pages/xray/outbounds/transport/sockopt.tsx` (+19 -3) ➕ `frontend/src/test/dialer-proxy-warning.test.tsx` (+77 -0) 📝 `internal/web/translation/ar-EG.json` (+1 -0) 📝 `internal/web/translation/en-US.json` (+1 -0) 📝 `internal/web/translation/es-ES.json` (+1 -0) 📝 `internal/web/translation/fa-IR.json` (+1 -0) 📝 `internal/web/translation/id-ID.json` (+1 -0) 📝 `internal/web/translation/ja-JP.json` (+1 -0) 📝 `internal/web/translation/pt-BR.json` (+1 -0) 📝 `internal/web/translation/ru-RU.json` (+1 -0) 📝 `internal/web/translation/sk-SK.json` (+1 -0) 📝 `internal/web/translation/tr-TR.json` (+1 -0) 📝 `internal/web/translation/uk-UA.json` (+1 -0) 📝 `internal/web/translation/vi-VN.json` (+1 -0) 📝 `internal/web/translation/zh-CN.json` (+1 -0) 📝 `internal/web/translation/zh-TW.json` (+1 -0) </details> ### 📄 Description ## Summary The Dialer Proxy select keeps showing a tag even when no outbound with that tag exists (for example after a hand edit of the raw config, or when a subscription outbound went away). The value then chains to nothing, with no hint in the UI. This shows a non-blocking warning under the field when the selected tag is not among the available outbound tags. ## Details - `SockoptForm` gets an opt-in `warnMissingDialerProxy` prop. Only the outbound form enables it, where the tag list is the set the dial resolves against. - The warning only appears once a real tag list is known, so "still loading" is never read as "no outbound exists". - The host form is unchanged: a host's Dialer Proxy resolves in the subscriber's client config, so the server outbound list says nothing about it. - New i18n key `pages.xray.outboundForm.dialerProxyMissing`, added to all 14 locales. ## Behaviour change None beyond the warning. The value is still kept and saved as before; nothing is blocked or cleared. ## Tests - New `dialer-proxy-warning.test.tsx` (written first, red, then green): warns for a dangling tag; quiet for a known tag, an empty value, and an unknown tag list. - The host form stays silent even for a tag missing from the server list, and a caller that does not opt in gets no warning. - Frontend unit and component suites, `tsc`, `oxlint`, `oxfmt` pass. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#6651
No description provided.