mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6466] [MERGED] feat(settings): add Block tab for JSON subscription routing rules #6287
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#6287
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/6466
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei
Base:
main← Head:feat/sub-json-block-routing-tab📝 Commits (2)
11c9c9efeat(settings): add Block tab for JSON subscription routing rules373acccfix(settings): preserve rule order and clear foreign leftovers📊 Changes
14 files changed (+124 additions, -46 deletions)
View changed files
📝
frontend/src/pages/settings/SubscriptionFormatsTab.tsx(+98 -46)📝
internal/web/translation/ar-EG.json(+2 -0)📝
internal/web/translation/en-US.json(+2 -0)📝
internal/web/translation/es-ES.json(+2 -0)📝
internal/web/translation/fa-IR.json(+2 -0)📝
internal/web/translation/id-ID.json(+2 -0)📝
internal/web/translation/ja-JP.json(+2 -0)📝
internal/web/translation/pt-BR.json(+2 -0)📝
internal/web/translation/ru-RU.json(+2 -0)📝
internal/web/translation/tr-TR.json(+2 -0)📝
internal/web/translation/uk-UA.json(+2 -0)📝
internal/web/translation/vi-VN.json(+2 -0)📝
internal/web/translation/zh-CN.json(+2 -0)📝
internal/web/translation/zh-TW.json(+2 -0)📄 Description
Summary
JSON subscription profiles already ship a
block(blackhole) outbound and prependsubJsonRulesverbatim, but the subscription formats UI only exposed Direct rules and hardcodedoutboundTag: "direct".This PR adds a Block tab next to Direct so operators can configure block domain/IP rules from the panel.
outboundTag: "block"(notblocked).pages.settings.block/blockDescin all locales; reusespages.xray.blockips/blockdomainsfor field labels.Out of scope (follow-up):
subJsonDomainStrategyUI/setting (requiresmake genand backend plumbing).Addresses #6072
Test plan
geosite:category-ads-allrule is written intosubJsonRuleswithoutboundTag: "block".subJsonRulesbecomes empty.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.