mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-12 04:25:08 +08:00
commit
452efaad24
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue