Fixed issue when not using compression
This commit is contained in:
parent
704a19b0a5
commit
f599bea216
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ func (h *Headscale) marshalResponse(
|
||||||
} else {
|
} else {
|
||||||
if !machineKey.IsZero() { // if legacy protocol
|
if !machineKey.IsZero() { // if legacy protocol
|
||||||
respBody = h.privateKey.SealTo(machineKey, jsonBody)
|
respBody = h.privateKey.SealTo(machineKey, jsonBody)
|
||||||
|
} else {
|
||||||
|
respBody = jsonBody
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue