瀏覽代碼

change DNS config to yes or no

abhishek9686 3 月之前
父節點
當前提交
ba869d7369
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)