From 2cf4f48dad06b43109f92c306c8a6622354890fd Mon Sep 17 00:00:00 2001 From: Abhishek Kondur Date: Fri, 8 Sep 2023 16:04:52 +0530 Subject: [PATCH] update static,mtu from client side host update --- logic/hosts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logic/hosts.go b/logic/hosts.go index 90e5d588f..e17c6f1e7 100644 --- a/logic/hosts.go +++ b/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