Fixed issue when not using compression

This commit is contained in:
Juan Font Alonso 2022-08-14 23:15:41 +02:00
parent 704a19b0a5
commit f599bea216

View file

@ -88,6 +88,8 @@ func (h *Headscale) marshalResponse(
} else {
if !machineKey.IsZero() { // if legacy protocol
respBody = h.privateKey.SealTo(machineKey, jsonBody)
} else {
respBody = jsonBody
}
}