Ver Fonte

change DNS config to yes or no

abhishek9686 há 3 meses atrás
pai
commit
ba869d7369
1 ficheiros alterados com 2 adições e 2 exclusões
  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)