diff --git a/hscontrol/noise.go b/hscontrol/noise.go index 9c29af95..9931a9cd 100644 --- a/hscontrol/noise.go +++ b/hscontrol/noise.go @@ -220,7 +220,7 @@ func (ns *noiseServer) NoisePollNetMapHandler( return } - if ns.nodeKey != mapRequest.NodeKey { + if node.NodeKey != mapRequest.NodeKey { httpError(writer, NewHTTPError(http.StatusNotFound, "node does not belong to machine key", nil)) return }