summaryrefslogtreecommitdiffstats
path: root/server/lib/iphelper.js
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-20 05:22:50 +0100
committerJannik Schönartz2019-03-20 05:22:50 +0100
commit67d1402c75e562af34058d0021cf6a14b5588d22 (patch)
treed977ee4fce3adbf0de27b4372c5589ece81e54d9 /server/lib/iphelper.js
parent[server/registration] Add client with json instead of parameters (ipxe) (diff)
downloadbas-67d1402c75e562af34058d0021cf6a14b5588d22.tar.gz
bas-67d1402c75e562af34058d0021cf6a14b5588d22.tar.xz
bas-67d1402c75e562af34058d0021cf6a14b5588d22.zip
[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
Diffstat (limited to 'server/lib/iphelper.js')
-rw-r--r--server/lib/iphelper.js2
1 files changed, 1 insertions, 1 deletions
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)