From 2f3dc0befe91761a09fcae4f2c38aa5efe71f479 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 2 Oct 2017 12:27:42 +0200 Subject: [PATCH] Oh :codacy: ... Signed-off-by: DL6ER --- scripts/pi-hole/php/FTL.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/pi-hole/php/FTL.php b/scripts/pi-hole/php/FTL.php index 590444ae..0c07ce5d 100644 --- a/scripts/pi-hole/php/FTL.php +++ b/scripts/pi-hole/php/FTL.php @@ -13,12 +13,12 @@ function testFTL($address) $ret = shell_exec("pidof pihole-FTL"); return intval($ret); } - else - { - // We cannot relly test for a distant FTL instance - // in the same way, so we return true here - return true; - } + // We cannot relly test for a distant FTL instance + // in the same way, so for any other IP address + // we simply return true here and rely on the API + // socket connection itself to fail if there is nothing + // on that address + return true; } function connectFTL($address, $port=4711, $quiet=true)