Commit 74497d84 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

FIX: too miuch blocks on /32

parent 9be90222
Pipeline #149402 passed with stages
in 10 minutes and 4 seconds
......@@ -876,18 +876,20 @@ export default {
}
}
}
if (last_was_reserved) {
containing_blocks.push({
first: ipaddress.int_to_ip(last_chg_ip),
type: 'reserved',
space: hard_maximum + 1 - (last_chg_ip)
})
} else {
containing_blocks.push({
first: ipaddress.int_to_ip(last_chg_ip),
type: 'free',
space: hard_maximum + 1 - (last_chg_ip)
})
if (hard_maximum - cur > 1) {
if (last_was_reserved) {
containing_blocks.push({
first: ipaddress.int_to_ip(last_chg_ip),
type: 'reserved',
space: hard_maximum + 1 - (last_chg_ip)
})
} else {
containing_blocks.push({
first: ipaddress.int_to_ip(last_chg_ip),
type: 'free',
space: hard_maximum + 1 - (last_chg_ip)
})
}
}
blk.containing_blocks = containing_blocks
this.asc_v4_blocklist.push(blk)
......
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