Include the last number in the range

This commit is contained in:
niten 2023-11-04 14:29:41 -07:00
parent 30b88e6eea
commit 9e1e23bfc6
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ let
assert base < top;
let
rangeFun = base: top:
if base == top then [ ] else [ base ] ++ (rangeFun (base + 1) top);
if base == top then [ base ] else [ base ] ++ (rangeFun (base + 1) top);
in rangeFun base top;
getNetworkHosts = network: filterAttrs (ip: _: ipv4OnNetwork ip network);