1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Fix: filter dhcdpcd.log for ad block

This commit is contained in:
billz 2022-03-31 10:47:55 +01:00
parent a8aa6d4331
commit 0aad7c8f0e

View File

@ -79,7 +79,7 @@ function DisplayAdBlockConfig()
$adblock_log = '';
exec('sudo chmod o+r '.RASPI_DHCPCD_LOG);
$handle = fopen("/tmp/dnsmasq.log", "r");
$handle = fopen(RASPI_DHCPCD_LOG, "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
if (preg_match('/(0.0.0.0)/', $line)) {