+
Donate if you found this useful.
diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php
index 048c4f2c..709a8093 100644
--- a/scripts/pi-hole/php/header.php
+++ b/scripts/pi-hole/php/header.php
@@ -4,9 +4,8 @@
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
-* Please see LICENSE file for your rights under this license. */ ?>
+* Please see LICENSE file for your rights under this license. */
- ["v4_1" => "4.2.2.1", "v4_2" => "4.2.2.2"],
"Norton" => ["v4_1" => "199.85.126.10", "v4_2" => "199.85.127.10"],
"Comodo" => ["v4_1" => "8.26.56.26", "v4_2" => "8.20.247.20"],
- "DNS.WATCH" => ["v4_1" => "84.200.69.80", "v4_2" => "84.200.70.40", "v6_1" => "2001:1608:10:25:0:0:1c04:b12f", "v6_2" => "2001:1608:10:25:0:0:9249:d69b"]
+ "DNS.WATCH" => ["v4_1" => "84.200.69.80", "v4_2" => "84.200.70.40", "v6_1" => "2001:1608:10:25:0:0:1c04:b12f", "v6_2" => "2001:1608:10:25:0:0:9249:d69b"],
+ "Quad9" => ["v4_1" => "9.9.9.9", "v6_1" => "2620:fe::fe"]
];
$adlist = [];
diff --git a/scripts/pi-hole/php/update_checker.php b/scripts/pi-hole/php/update_checker.php
index e7ab480d..9bd4ab06 100644
--- a/scripts/pi-hole/php/update_checker.php
+++ b/scripts/pi-hole/php/update_checker.php
@@ -42,8 +42,15 @@ else
$web_current = explode("-",$versions[1])[0];
}
- /********** Get Pi-hole FTL version (not a git repository) **********/
- $FTL_current = $versions[2];
+ /********** Get Pi-hole FTL (not a git repository) **********/
+ $FTL_branch = $branches[2];
+ if($FTL_branch !== "master") {
+ $FTL_current = "vDev";
+ $FTL_commit = $versions[2];
+ }
+ else {
+ $FTL_current = explode("-",$versions[2])[0];
+ }
// Get data from GitHub
$core_latest = $GitHubversions[0];
@@ -77,7 +84,15 @@ else
// FTL version comparison
// This logic allows the local core version to be newer than the upstream version
// The update indicator is only shown if the upstream version is NEWER
- $FTL_update = (version_compare($FTL_current, $FTL_latest) < 0);
+ if($FTL_current !== "vDev")
+ {
+ $FTL_update = (version_compare($FTL_current, $FTL_latest) < 0);
+ }
+ else
+ {
+ $FTL_update = false;
+ }
+
}
?>
diff --git a/settings.php b/settings.php
index 709a1a67..a032c9ee 100644
--- a/settings.php
+++ b/settings.php
@@ -10,11 +10,6 @@ require "scripts/pi-hole/php/savesettings.php";
// Reread ini file as things might have been changed
$setupVars = parse_ini_file("/etc/pihole/setupVars.conf");
-function command_exist($cmd)
-{
- return !empty(shell_exec(sprintf("which %s", escapeshellarg($cmd))));
-}
-
?>