Return the correct error on cache miss

This commit is contained in:
Juan Font authored and Juan Font committed 2022-11-14 16:50:43 +01:00
1 parent 4034fbc6e9
commit 613d29478d
1 file changed
+1 -1
+1 -1
View File
@@ -451,7 +451,7 @@ func (h *Headscale) validateMachineForOIDCCallback(
Msg("Failed to write response")
}
return nil, false, errOIDCInvalidMachineState
return nil, false, errOIDCNodeKeyMissing
}
var nodeKey key.NodePublic