Commit 70e4ca8d authored by Janis Streib's avatar Janis Streib 🦉

UPD: exclude last address form blocklist

parent c7c804a7
Pipeline #131699 passed with stages
in 6 minutes and 4 seconds
......@@ -762,7 +762,7 @@ export default {
}
let last = ipaddress.ip_to_int(subnet.cidr.split('/')[0])
const min = last
const hard_maximum = ipaddress.ip_to_int(ipaddress.ip_net_get_last(subnet.cidr))
const hard_maximum = ipaddress.ip_to_int(ipaddress.ip_net_get_last(subnet.cidr)) - 1
let cur = null
while (working_arecs.length > 0) {
const r = working_arecs.shift()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment