mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6609] [MERGED] fix(sub): drop legacy freedom.domainStrategy from JSON sub template #6376
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#6376
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/6609
Author: @mrchatam
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/26/2026
Merged by: @MHSanaei
Base:
main← Head:fix/sub-json-drop-legacy-freedom-domainStrategy📝 Commits (3)
cb3ed39fix(sub): drop legacy freedom.domainStrategy from JSON sub template0d1f418test(sub): lock default.json freedom outbound off legacy domainStrategyecd9680style(sub): keep the default.json test comment to two lines📊 Changes
2 files changed (+40 additions, -2 deletions)
View changed files
📝
internal/sub/default.json(+1 -2)➕
internal/sub/default_json_test.go(+39 -0)📄 Description
Summary
settings.domainStrategyfrom thedirectfreedom outbound in the embedded JSON-subscription template (internal/sub/default.json).domainStrategyis unchanged (different key).TestDefaultJSON_FreedomOutboundHasNoLegacyDomainStrategyso CI covers the embed (path filters skip JSON-only diffs).Follow-up to #6515, which moved the panel Xray template / Basics tab / outbound editor onto
streamSettings.sockopt.domainStrategyand seeded existing DB templates. The JSON-sub embed still carried the legacy freedom settings key.AsIsis the core default when the key is absent, so omitting it is behavior-preserving and avoids the deprecated placement entirely.Fixes #6482
Test plan
internal/sub/default.json— freedom outbound has nodomainStrategy; routing still hasdomainStrategy: AsIsgo test ./internal/sub/ -count=1 -run 'TestDefaultJSON_FreedomOutboundHasNoLegacyDomainStrategy'go test ./internal/sub/ -count=1 -run 'TestBuild|TestSubJson|TestMutation|TestDefault'settings.domainStrategy🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.