From 7e7a0eecbaf853d7994e18b4343439fe50850670 Mon Sep 17 00:00:00 2001 From: rammiah Date: Sat, 20 Apr 2024 17:38:58 +0800 Subject: [PATCH] fix dns ui fix domains for nameserver only record, domain will keep after edit a server with domains list --- web/html/xui/dns_modal.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/html/xui/dns_modal.html b/web/html/xui/dns_modal.html index 3035e9e1..4c85e7f3 100644 --- a/web/html/xui/dns_modal.html +++ b/web/html/xui/dns_modal.html @@ -53,7 +53,11 @@ if (typeof dnsServer == 'object'){ this.dnsServer = dnsServer; } else { - this.dnsServer.address = dnsServer?? ''; + this.dnsServer = { + address: dnsServer ?? "", + domains: [], + queryStrategy: 'UseIP', + } } } else { this.dnsServer = {