From 4789e79719daa08b18b23592420f094198726bb7 Mon Sep 17 00:00:00 2001 From: MikeyGMT Date: Sun, 7 Feb 2016 12:37:19 +0000 Subject: [PATCH] Banlist - many entries in the banlog.log #1325 Only whrite Blacklist IP's to banlog.log Closes #1325 --- e107_handlers/iphandler_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/iphandler_class.php b/e107_handlers/iphandler_class.php index 09a037a59..2fc038426 100644 --- a/e107_handlers/iphandler_class.php +++ b/e107_handlers/iphandler_class.php @@ -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)