updated to run a daemon per different comms

This commit is contained in:
0xdcarns
2022-02-18 16:43:12 -05:00
parent 4cc293ee89
commit 095f1002dd
2 changed files with 12 additions and 16 deletions

View File

@@ -121,7 +121,7 @@ func publish(cfg *config.ClientConfig, dest string, msg []byte, qos byte) error
return err
}
client := setupMQTT(true)
client := setupMQTT(true, cfg.Node.CommID)
defer client.Disconnect(250)
encrypted, err := ncutils.Chunk(msg, serverPubKey, trafficPrivKey)
if err != nil {