1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 20:21:51 +02:00

Banlist - many entries in the banlog.log #1325

Only whrite Blacklist IP's to banlog.log
Closes #1325
This commit is contained in:
MikeyGMT 2016-02-07 12:37:19 +00:00
parent b182f463cb
commit 4789e79719

View File

@ -169,9 +169,9 @@ class eIPHandler
$ipStatus = $this->checkIP($this->ourIP);
if ($ipStatus != 0)
{
$this->logBanItem($ipStatus, 'result --> '.$ipStatus);
if ($ipStatus < 0)
{ // Blacklisted
$this->logBanItem($ipStatus, 'result --> '.$ipStatus); // only log blacklist
$this->banAction($ipStatus); // This will abort if appropriate
}
elseif ($ipStatus > 0)