mirror of
https://github.com/juanfont/headscale.git
synced 2026-04-24 01:28:49 +02:00
Switching MachineKey for NodeKey wherever possible as Node identifier
This commit is contained in:
5
poll.go
5
poll.go
@@ -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").
|
||||
|
||||
Reference in New Issue
Block a user