Explorar el Código

Merge pull request #1354 from henrywhitaker3/pihole-auth-fix

Added auth to pihole homepage item
causefx hace 6 años
padre
commit
149841bea9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/functions/homepage-connect-functions.php

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -123,7 +123,7 @@ function getHealthChecks($tags = null)
 
 function getPihole()
 {
-	if ($GLOBALS['homepagePiholeEnabled'] && !empty($GLOBALS['piholeURL'])) {
+	if ($GLOBALS['homepagePiholeEnabled'] && !empty($GLOBALS['piholeURL']) && qualifyRequest($GLOBALS['homepagePiholeAuth'])) {
 		$api = array();
 		$urls = explode(',', $GLOBALS['piholeURL']);
 		foreach ($urls as $url) {