1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01:00

Ip check fix.

This commit is contained in:
Cameron 2013-05-30 18:27:28 -07:00
parent 8a2e556bd2
commit edd41de86b

View File

@ -252,7 +252,7 @@ class eIPHandler
public function isAddressRoutable($ip)
{
$ignore = array(
'0\..*#' , '#^127\..*' , // Local loopbacks
'0\..*' , '^127\..*' , // Local loopbacks
'192\.168\..*' , // RFC1918 - Private Network
'172\.(?:1[6789]|2\d|3[01])\..*' , // RFC1918 - Private network
'10\..*' , // RFC1918 - Private Network