Merge pull request #868 from SiIky/fix/Z4NKZ9Hc/zeroconf-backwards-compat
fix: zero-conf backwards compatibility
This commit is contained in:
commit
1d2c497a4f
2 changed files with 6 additions and 1 deletions
|
|
@ -87,6 +87,11 @@ function poll (req, res, next) {
|
|||
triggersAutomation
|
||||
}
|
||||
|
||||
// BACKWARDS_COMPATIBILITY 7.6
|
||||
// Machines before 7.6 expect a single zeroConfLimit value per machine.
|
||||
if (!semver.gte(machineVersion, '7.6.0-beta.0'))
|
||||
response.zeroConfLimit = _.min(_.values(zeroConfLimits))
|
||||
|
||||
// BACKWARDS_COMPATIBILITY 7.5
|
||||
// machines before 7.5 expect old compliance
|
||||
if (!machineVersion || semver.lt(machineVersion, '7.5.0-beta.0')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue