removed go routines around mq

This commit is contained in:
0xdcarns
2022-01-31 14:01:09 -05:00
parent a4582dd14d
commit d5d442c75c
5 changed files with 71 additions and 127 deletions

View File

@@ -224,6 +224,10 @@ func NodeUpdate(client mqtt.Client, msg mqtt.Message) {
ncutils.Log("error restarting wg after node update " + err.Error())
return
}
if err = Resubscribe(client, &cfg); err != nil {
ncutils.Log("error resubscribing after interface change " + err.Error())
return
}
} else {
ncutils.Log("syncing conf to " + file)
err = wireguard.SyncWGQuickConf(cfg.Node.Interface, file)