Skip to content

Commit

Permalink
update static,mtu from client side host update
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Sep 8, 2023
1 parent 166e619 commit 2cf4f48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logic/hosts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cf4f48

Please sign in to comment.