mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6145] [CLOSED] fix(frontend): keep DNS hosts synchronized #6108
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#6108
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/6145
Author: @PathGao
Created: 7/29/2026
Status: ❌ Closed
Base:
main← Head:fix-dns-hosts-source📝 Commits (2)
60ad7ddfix(frontend): keep DNS hosts synchronized267ed6bfix(frontend): preserve incomplete DNS hosts📊 Changes
2 files changed (+86 additions, -16 deletions)
View changed files
📝
frontend/src/pages/xray/dns/DnsTab.tsx(+14 -16)➕
frontend/src/test/dns-tab.test.tsx(+72 -0)📄 Description
Problem
DnsTab mirrors
dns.hostsinto local state and refreshes that mirror only when DNS is enabled or disabled. An external config update while DNS remains enabled leaves the editor on old hosts, so a later edit can overwrite the new server value.Change
templateSettings.dns.hosts.Regression coverage
Validation
make verify🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.