IPv4 address ranges: edge case
IPv4 address ranges: edge case: a task in smol-software-harbor (Harbor dataset). CIDR::contains in lib/CIDR.pm dies with "bad prefix" for 0.0.0.0/0 , the default route, which is a valid range that matches every address. Accept prefix length 0 (lengths above 32 must still be rejected, and /32 must…
The task
`CIDR::contains` in `lib/CIDR.pm` dies with "bad prefix" for `0.0.0.0/0`, the default route, which is a valid range that matches every address. Accept prefix length 0 (lengths above 32 must still be rejected, and `/32` must still match exactly one address). Run `prove -Ilib t/`.
Part of efederici/smol-software-harbor.