Add a function in Safelib to match IP addresses reliably
Summary
Currently we have to do this in accessRules:
$ipAddr eq "127.0.0.1" or $ipAddr =~ /192\.168/
This is error prone and difficult, we need a better function that understands CIDR notation
inNetwork("192.168.0.0/24") or inNetwork("127.0.0.1/32")
Design proposition
- We need to find (or vendor) a CPAN module that works in SafeJail