--On Monday, September 12, 2005 2:45 PM -0700 [EMAIL PROTECTED]
wrote:
True enough, but actually 172.16/12 includes 172.16-31...
#172.16/12
if ($ip =~ /^172\.(16|17|18|19|2[0-9]|30|31)\./) { # messy?
#return 1;
}
It might be cleaner to simply convert the address to a 32-bit value and do
a mask and compare on the resulting integer.
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang