浏览代码

test autoupdate

Abhishek Kondur 1 年之前
父节点
当前提交
f62bde4c7c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      logic/hosts.go

+ 1 - 1
logic/hosts.go

@@ -199,7 +199,7 @@ func UpdateHost(newHost, currentHost *models.Host) {
 	newHost.Nodes = currentHost.Nodes
 	newHost.PublicKey = currentHost.PublicKey
 	newHost.TrafficKeyPublic = currentHost.TrafficKeyPublic
-
+	newHost.AutoUpdate = currentHost.AutoUpdate
 	// changeable fields
 	if len(newHost.Version) == 0 {
 		newHost.Version = currentHost.Version