don't pre-populate the ban lists with fake data, things get confused
This commit is contained in:
parent
1065a1915d
commit
427175983b
1 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ class IPBan extends Extension {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log_error("ipban", "block() called but no bans matched");
|
log_error("ipban", "block($remote) called but no bans matched");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
// }}}
|
// }}}
|
||||||
|
@ -261,8 +261,8 @@ class IPBan extends Extension {
|
||||||
if($cached) return $cached;
|
if($cached) return $cached;
|
||||||
|
|
||||||
$bans = $this->get_active_bans();
|
$bans = $this->get_active_bans();
|
||||||
$ips = array("0.0.0.0" => false);
|
$ips = array(); # "0.0.0.0" => false);
|
||||||
$nets = array("0.0.0.0/32" => false);
|
$nets = array(); # "0.0.0.0/32" => false);
|
||||||
foreach($bans as $row) {
|
foreach($bans as $row) {
|
||||||
if(strstr($row['ip'], '/')) {
|
if(strstr($row['ip'], '/')) {
|
||||||
$nets[$row['ip']] = true;
|
$nets[$row['ip']] = true;
|
||||||
|
|
Reference in a new issue