diff --git a/protocol_common_utils.go b/protocol_common_utils.go index 3eb5471..516b616 100644 --- a/protocol_common_utils.go +++ b/protocol_common_utils.go @@ -88,6 +88,8 @@ func (h *Headscale) marshalResponse( } else { if !machineKey.IsZero() { // if legacy protocol respBody = h.privateKey.SealTo(machineKey, jsonBody) + } else { + respBody = jsonBody } }