mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-17 12:09:58 +00:00
remove meta update
This commit is contained in:
@@ -1159,15 +1159,6 @@ func (am *DefaultAccountManager) LoginPeer(ctx context.Context, login types.Peer
|
||||
return err
|
||||
}
|
||||
|
||||
// Persist updated peer metadata (WireGuard version, OS, capabilities) on login.
|
||||
// The stored version drives firewall feature selection (e.g. native SSH) and a
|
||||
// metadata change must refresh remote peers.
|
||||
isPeerUpdated, _ := peer.UpdateMetaIfNew(login.Meta)
|
||||
if isPeerUpdated {
|
||||
am.metrics.AccountManagerMetrics().CountPeerMetUpdate()
|
||||
shouldStorePeer = true
|
||||
}
|
||||
|
||||
if peer.SSHKey != login.SSHKey {
|
||||
peer.SSHKey = login.SSHKey
|
||||
shouldStorePeer = true
|
||||
|
||||
Reference in New Issue
Block a user