瀏覽代碼

update static,mtu from client side host update

Abhishek Kondur 2 年之前
父節點
當前提交
2cf4f48dad
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      logic/hosts.go

+ 3 - 3
logic/hosts.go

@@ -242,9 +242,9 @@ func UpdateHostFromClient(newHost, currHost *models.Host) (sendPeerUpdate bool)
 	currHost.Debug = newHost.Debug
 	currHost.Verbosity = newHost.Verbosity
 	currHost.Version = newHost.Version
-	if newHost.Name != "" {
-		currHost.Name = newHost.Name
-	}
+	currHost.IsStatic = newHost.IsStatic
+	currHost.MTU = newHost.MTU
+	currHost.Name = newHost.Name
 	if len(newHost.NatType) > 0 && newHost.NatType != currHost.NatType {
 		currHost.NatType = newHost.NatType
 		sendPeerUpdate = true