Allow sitelock immediately after install (#160)

This commit is contained in:
Kijin Sung 2016-02-08 22:00:17 +09:00
parent 9e9b09464f
commit 605fdec1a2
10 changed files with 84 additions and 10 deletions

View file

@ -174,7 +174,6 @@ class IpFilter
$range .= str_repeat('.*', 4 - $count);
}
$range = str_replace(array('.', '*'), array('\\.', '\\d+'), trim($range));
var_dump($ip, $range);
return preg_match("/^$range$/", $ip) ? true : false;
}