Merge pull request #952 from gravitl/v0.12.1

V0.12.1
This commit is contained in:
dcarns 2022-03-22 14:51:18 -04:00 committed by GitHub
commit 452efaad24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -322,8 +322,12 @@ func setWGKeyConfig(node *models.Node) error {
}
func removeLocalServer(node *models.Node) error {
var ifacename = node.Interface
if !IsLocalServer(node) {
return nil
}
var err error
var ifacename = node.Interface
if err = RemovePrivKey(node.ID); err != nil {
logger.Log(1, "failed to remove server conf from db", node.ID)
}