From 67d1402c75e562af34058d0021cf6a14b5588d22 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Wed, 20 Mar 2019 04:22:50 +0000 Subject: [server/registration/backends] Rework addClient and updateClient to receive json Add idoit workaround for saving floats again Rework the grepSystemInfo bash script to match the new api --- server/lib/iphelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib/iphelper.js') diff --git a/server/lib/iphelper.js b/server/lib/iphelper.js index 769dcc3..8432b01 100644 --- a/server/lib/iphelper.js +++ b/server/lib/iphelper.js @@ -5,7 +5,7 @@ module.exports = { toDecimal, toIPv4, getGroups, isIPv4 } // Finds the groups where the ip fits best in the subnets. async function getGroups (ipString) { - const ipInt = toDecimal(ipString) + const ipInt = toDecimal(ipString) let fittingIpRanges = await db.iprange.findAll({ where: { startIp: { [db.Op.lte]: ipInt }, endIp: { [db.Op.gte]: ipInt } } }) fittingIpRanges = fittingIpRanges.map(x => x.groupId) -- cgit v1.2.3-55-g7522