From fa8cec8fa7eace14cb2b31f8b7a077fb93a5dfcd Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sat, 16 Apr 2016 02:50:15 +0100 Subject: [PATCH] add extra check to getAllQueries so that reads of gravity.list are not counted as pi-holed --- data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.php b/data.php index 314d4b72..17acdd5b 100644 --- a/data.php +++ b/data.php @@ -132,7 +132,7 @@ elseif (substr($tmp, 0, 9) == "forwarded" ){ $status="OK"; } - elseif (substr($tmp, strlen($tmp) - 12, 12) == "gravity.list" ){ + elseif (substr($tmp, strlen($tmp) - 12, 12) == "gravity.list" && $exploded[count($exploded)-5] != "read"){ $status="Pi-holed"; }