Răsfoiți Sursa

change DNS config to yes or no

abhishek9686 3 luni în urmă
părinte
comite
ba869d7369
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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)