mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6472] [CLOSED] feat(sub): make JSON subscription DNS configurable #6294
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#6294
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/6472
Author: @mrchatam
Created: 9/11/2026
Status: ❌ Closed
Base:
main← Head:feat/sub-json-configurable-dns📝 Commits (2)
6cdcac9feat(sub): make JSON subscription DNS configurable0177adfstyle(frontend): oxfmt SubscriptionFormatsTab DNS tab label📊 Changes
28 files changed (+373 additions, -20 deletions)
View changed files
📝
docs/public/openapi.json(+16 -0)📝
frontend/public/openapi.json(+16 -0)📝
frontend/src/generated/examples.ts(+4 -0)📝
frontend/src/generated/schemas.ts(+16 -0)📝
frontend/src/generated/types.ts(+4 -0)📝
frontend/src/generated/zod.ts(+4 -0)📝
frontend/src/models/setting.ts(+2 -0)📝
frontend/src/pages/settings/SubscriptionFormatsTab.tsx(+33 -0)📝
frontend/src/schemas/setting.ts(+2 -0)📝
internal/sub/controller.go(+18 -7)➕
internal/sub/json_dns_test.go(+84 -0)📝
internal/sub/json_service.go(+72 -0)📝
internal/sub/sub.go(+12 -0)📝
internal/web/entity/entity.go(+2 -0)📝
internal/web/service/setting.go(+10 -0)📝
internal/web/translation/ar-EG.json(+6 -1)📝
internal/web/translation/en-US.json(+6 -1)📝
internal/web/translation/es-ES.json(+6 -1)📝
internal/web/translation/fa-IR.json(+6 -1)📝
internal/web/translation/id-ID.json(+6 -1)...and 8 more files
📄 Description
Summary
subJsonDNSServers(default8.8.8.8) andsubJsonDNSQueryStrategy(defaultUseIP) so generated JSON subscriptions no longer need a binary sed patch for client DNS.SubJsonService.SetDNSConfig, with a DNS tab under Settings → Sub Formats and i18n coverage.UseIP. Baked Happ/INCY routing profiles still own their DNS subtree.Scope / non-goals
subJsonRulestextarea).subJsonDNSServers+subJsonDNSQueryStrategy.subJsonDomainStrategy, and the rawsubJsonRuleseditor requested in #6342.Test plan
go test ./internal/sub/ ./internal/web/service/1.1.1.1,UseIPv4, save, restart/reload sub server/json/<subId>and confirmdns.servers/queryStrategymatch8.8.8.8+UseIP🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.