mirror of
https://github.com/pi-hole/web.git
synced 2026-02-24 19:59:52 +00:00
Implemented new "pihole -q <domain> -exact" argument in web UI
This commit is contained in:
@@ -34,7 +34,16 @@ else
|
||||
die();
|
||||
}
|
||||
|
||||
$proc = popen("sudo pihole -q ".$url, 'r');
|
||||
if(isset($_GET["exact"]))
|
||||
{
|
||||
$exact = "-exact";
|
||||
}
|
||||
else
|
||||
{
|
||||
$exact = "";
|
||||
}
|
||||
|
||||
$proc = popen("sudo pihole -q ".$url." ".$exact, 'r');
|
||||
while (!feof($proc)) {
|
||||
echoEvent(fread($proc, 4096));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user