Switching MachineKey for NodeKey wherever possible as Node identifier

This commit is contained in:
Juan Font Alonso
2022-03-29 16:54:31 +02:00
parent fc181333e5
commit 5082975289
7 changed files with 156 additions and 57 deletions

View File

@@ -388,10 +388,7 @@ func (h *Headscale) PollNetMapStream(
Str("channel", "keepAlive").
Int("bytes", len(data)).
Msg("Keep alive sent successfully")
// TODO(kradalby): Abstract away all the database calls, this can cause race conditions
// when an outdated machine object is kept alive, e.g. db is update from
// command line, but then overwritten.
err = h.UpdateMachine(machine)
// TODO(kradalbCne(machine)
if err != nil {
log.Error().
Str("handler", "PollNetMapStream").