mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Update adblock logging regex
This commit is contained in:
parent
911a6a3145
commit
2e8d2b1e16
@ -84,7 +84,7 @@ function DisplayAdBlockConfig()
|
|||||||
$handle = fopen(RASPI_DHCPCD_LOG, "r");
|
$handle = fopen(RASPI_DHCPCD_LOG, "r");
|
||||||
if ($handle) {
|
if ($handle) {
|
||||||
while (($line = fgets($handle)) !== false) {
|
while (($line = fgets($handle)) !== false) {
|
||||||
if (preg_match('/(0.0.0.0)/', $line)) {
|
if (preg_match('/(is 0.0.0.0)|(using only locally-known addresses)/', $line)) {
|
||||||
$adblock_log .= $line;
|
$adblock_log .= $line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user