From 21f0e089b689ebd4b64b4b701a2de50939f7df1b Mon Sep 17 00:00:00 2001 From: Anton Schubert Date: Thu, 10 Nov 2022 13:03:26 +0100 Subject: [PATCH] fix noise mapResponse updates, fixes #838 --- protocol_common_poll.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol_common_poll.go b/protocol_common_poll.go index 246d0ce2..9eebe921 100644 --- a/protocol_common_poll.go +++ b/protocol_common_poll.go @@ -451,7 +451,7 @@ func (h *Headscale) pollNetMapStream( Time("last_successful_update", lastUpdate). Time("last_state_change", h.getLastStateChange(machine.Namespace)). Msgf("There has been updates since the last successful update to %s", machine.Hostname) - data, err := h.getMapResponseData(mapRequest, machine, false) + data, err := h.getMapResponseData(mapRequest, machine, isNoise) if err != nil { log.Error(). Str("handler", "PollNetMapStream"). @@ -622,7 +622,7 @@ func (h *Headscale) scheduledPollWorker( defer closeChanWithLog( keepAliveChan, fmt.Sprint(ctx.Value(machineNameContextKey)), - "updateChan", + "keepAliveChan", ) for {