Disable peer expiration of peers added with setup keys (#758)

This commit is contained in:
Misha Bragin
2023-03-23 17:47:53 +01:00
committed by GitHub
parent 628b497e81
commit e6292e3124
3 changed files with 40 additions and 3 deletions

View File

@@ -528,7 +528,7 @@ func (am *DefaultAccountManager) AddPeer(setupKey, userID string, peer *Peer) (*
SSHEnabled: false,
SSHKey: peer.SSHKey,
LastLogin: time.Now(),
LoginExpirationEnabled: true,
LoginExpirationEnabled: addedByUser,
}
// add peer to 'All' group