From 43956f72edf3fde5896bbf16282afc7d8178fb7a Mon Sep 17 00:00:00 2001 From: mischa Date: Mon, 8 May 2023 08:42:13 +0000 Subject: [PATCH] run -T show on protected --- ptrd.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/ptrd.pl b/ptrd.pl index 516d006..d0ce4c0 100755 --- a/ptrd.pl +++ b/ptrd.pl @@ -142,6 +142,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");