Skip to content
Snippets Groups Projects
Commit 02b4950c authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

FIX: remove bogus v4 free-block

parent 0ea961ff
No related branches found
No related tags found
No related merge requests found
......@@ -464,7 +464,7 @@ export default {
const containing_blocks = []
let last_chg_ip = cur + 1
let last_was_reserved = ipaddress.int_to_ip(last_chg_ip) in this.reserved_addrs_by_ip
if (this.reserved_addrs_by_ip.length > 0) {
if (Object.keys(this.reserved_addrs_by_ip).length > 0) {
for (var k = 1; k < hard_maximum - cur; k++) {
if (ipaddress.int_to_ip(cur + k) in this.reserved_addrs_by_ip) {
if (!last_was_reserved) {
......@@ -488,12 +488,6 @@ export default {
}
}
}
} else {
containing_blocks.push({
first: ipaddress.int_to_ip(blk.lower),
type: 'free',
space: blk.upper - blk.lower,
})
}
if (hard_maximum - cur > 1) {
if (last_was_reserved) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment