mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Make second argument of resolveHostname() optional
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
+1
-1
@@ -309,7 +309,7 @@ if (isset($_GET['getClientNames']) && $auth)
|
||||
foreach($return as $line)
|
||||
{
|
||||
$tmp = explode(" ",$line);
|
||||
$forward_dest[resolveHostname($tmp[2])] = floatval($tmp[1]);
|
||||
$forward_dest[resolveHostname($tmp[2],true)] = floatval($tmp[1]);
|
||||
}
|
||||
|
||||
$result = array('clients' => $forward_dest);
|
||||
|
||||
@@ -140,7 +140,7 @@ function disconnectFTL($quiet=true)
|
||||
}
|
||||
|
||||
$clients = array();
|
||||
function resolveHostname($clientip, $printIP)
|
||||
function resolveHostname($clientip, $printIP = false)
|
||||
{
|
||||
global $clients;
|
||||
$ipaddr = strtolower($clientip);
|
||||
|
||||
Reference in New Issue
Block a user