summaryrefslogtreecommitdiffstats
path: root/server/lib/iphelper.js
diff options
context:
space:
mode:
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)