Quellcode durchsuchen

change DNS config to yes or no

abhishek9686 vor 3 Monaten
Ursprung
Commit
ba869d7369
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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)