added ability to remove local instance of netmaker

This commit is contained in:
0xdcarns
2021-10-20 09:22:05 -04:00
parent dc29e92b0b
commit 51c1973b21
7 changed files with 58 additions and 19 deletions

View File

@@ -80,7 +80,7 @@ func GetPeers(node models.Node) ([]models.Node, error) {
func IsLeader(node *models.Node) bool {
nodes, err := GetSortedNetworkServerNodes(node.Network)
if err != nil {
functions.PrintUserLog("[netmaker]", "ERROR: COULD NOT RETRIEVE SERVER NODES. THIS WILL BREAK HOLE PUNCHING.", 0)
functions.PrintUserLog("", "ERROR: COULD NOT RETRIEVE SERVER NODES. THIS WILL BREAK HOLE PUNCHING.", 0)
return false
}
for _, n := range nodes {