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