added cidr regardless

This commit is contained in:
0xdcarns
2022-02-06 11:06:04 -05:00
parent 36a8df5b7c
commit 8ea0574be9
4 changed files with 16 additions and 16 deletions

View File

@@ -388,7 +388,9 @@ func MonitorKeepalive(ctx context.Context, client mqtt.Client, cfg *config.Clien
// ServerKeepAlive -- handler to react to keepalive messages published by server
func ServerKeepAlive(client mqtt.Client, msg mqtt.Message) {
keepalive.Store(parseNetworkFromTopic(msg.Topic()), time.Now())
var currentTime = time.Now()
keepalive.Store(parseNetworkFromTopic(msg.Topic()), currentTime)
ncutils.PrintLog("setting time: "+currentTime.String(), 1)
}
// Resubscribe --- handles resubscribing if needed