[Mimedefang] MX -> 127.0.0.1

Kenneth Porter shiva at sewingwitch.com
Mon Sep 12 18:30:35 EDT 2005


--On Monday, September 12, 2005 2:45 PM -0700 Matthew.van.Eerde at hbinc.com 
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.





More information about the MIMEDefang mailing list