[ZendTo] Re: Local subnets

Jules Jules at Zend.To
Wed May 30 14:14:06 BST 2012



On 29/05/2012 23:45, Kevin Miller wrote:
> The example in preferences.php shows this:
> 	'localIPSubnets'       =>  array('139.166.','152.78'),
>
> Is there a functional difference between the first (138.166.) and the second (152.78)?  The first has a trailing dot, the second doesn't.  I presume that both would be the equivilant of a /16 subnet?
Ideally the 2nd would have a "." on the end, but as it's just an initial 
substring match it doesn't matter in this case.
>
> Feature request:  it would be great to be able to define scopes with a /nn type mask, i.e. 192.168.32.0/20
I'll take a look at that to see if there's a suitable PHP function that 
will do the job. At the moment it's a simple initial substring match, 
which is very simple and usually good enough! :-)

Jules.

>
> Thanks...
>
>   ...Kevin
> --
> Kevin Miller
> Network/email Administrator, CBJ MIS Dept.
> 155 South Seward Street
> Juneau, Alaska 99801
> Phone: (907) 586-0242, Fax: (907) 586-4500
> Registered Linux User No: 307357
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.to
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto

Jules

-- 
Julian Field MEng CITP CEng
www.Zend.To

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982



More information about the ZendTo mailing list