Selaa lähdekoodia

fix dns ui (#2229)

fix domains for nameserver only record, domain will keep after edit a
server with domains list
Rammiah 10 kuukautta sitten
vanhempi
commit
a3a2d7a6a3
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      web/html/xui/dns_modal.html

+ 5 - 1
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 = {