From e7a3260b61796aba554e8d6efc2c5814d6a8b0b4 Mon Sep 17 00:00:00 2001 From: mischa Date: Mon, 8 May 2023 08:40:26 +0000 Subject: [PATCH] run -T show on protected --- ard.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/ard.pl b/ard.pl index d80a0b8..70590aa 100755 --- a/ard.pl +++ b/ard.pl @@ -140,6 +140,7 @@ sub http_child { } elsif ($token eq 'protect') { my $protect = qx(pfctl -t protected -T add $client_ip 2>&1); chomp $protect; + qx(pfctl -t protected -T show > /etc/pf.protected); _log("$client_ip $token $protect"); _http_response($c, {content_type => 'text/plain'}, "Received [$client_ip -> protect] $protect");