fix dns ui (#2229)

fix domains for nameserver only record, domain will keep after edit a
server with domains list
This commit is contained in:
Rammiah authored and GitHub committed 2024-04-20 14:46:08 +03:30
1 parent 2cf2c451c2
commit a3a2d7a6a3
1 file changed
+5 -1
+5 -1
View File
@@ -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 = {