Need to compare ints

This commit is contained in:
niten 2023-11-03 11:51:22 -07:00
parent a241c56c59
commit 9d031308aa
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ in rec {
ip-int = ipv4ToInt ip;
net-min = networkMinIp network;
net-max = networkMaxIp network;
in (ip-int >= networkMinIp) && (ip-int <= networkMaxIp);
in (ip-int >= (ipv4ToInt networkMinIp))
&& (ip-int <= (ipv4ToInt networkMaxIp));
getNetworkMask = network: toInt (elemAt (splitString "/" network) 1);