Przeglądaj źródła

change DNS config to yes or no

abhishek9686 3 miesięcy temu
rodzic
commit
ba869d7369
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      logic/hosts.go

+ 2 - 2
logic/hosts.go

@@ -231,9 +231,9 @@ func CreateHost(h *models.Host) error {
 	h.AutoUpdate = AutoUpdateEnabled()
 
 	if GetServerSettings().ManageDNS {
-		h.DNS = "on"
+		h.DNS = "yes"
 	} else {
-		h.DNS = "off"
+		h.DNS = "no"
 	}
 	checkForZombieHosts(h)
 	return UpsertHost(h)