From f599bea216a4541d7f488e4f7f7e555123c48580 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 14 Aug 2022 23:15:41 +0200 Subject: [PATCH] Fixed issue when not using compression --- protocol_common_utils.go | 2 ++ 1 file changed, 2 insertions(+) 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 } }