diff --git a/scripts/pi-hole/php/teleporter.php b/scripts/pi-hole/php/teleporter.php
index dbdb637d..9cf280bd 100644
--- a/scripts/pi-hole/php/teleporter.php
+++ b/scripts/pi-hole/php/teleporter.php
@@ -143,6 +143,14 @@ if(isset($_POST["action"]))
$importedsomething = true;
}
+ if(isset($_POST["auditlog"]) && $file->getFilename() === "auditlog.list")
+ {
+ $auditlog = process_file(file_get_contents($file));
+ echo "Processing auditlog.list (".count($auditlog)." entries)
\n";
+ exec("sudo pihole -a clearaudit");
+ exec("sudo pihole -a audit ".implode(" ",$auditlog));
+ }
+
if($importedsomething)
{
exec("sudo pihole restartdns");
diff --git a/settings.php b/settings.php
index dfe348bf..8ff665f1 100644
--- a/settings.php
+++ b/settings.php
@@ -1099,6 +1099,11 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists"
checked>
Regex filters
+