fix: reject future machines as well

This commit is contained in:
Rafael Taranto 2025-04-22 13:57:12 +01:00
parent 1830f90c2c
commit 892f46f64c

View file

@ -18,6 +18,13 @@ const rejectIncompatibleMachines = function (req, res, next) {
}) })
} }
if (serverMajor < machineMajor) {
logger.error(`Machine version too new: ${machineVersion} deviceId: ${deviceId}`)
return res.status(400).json({
error: 'Machine version too new'
})
}
next() next()
} }