run -T show on protected

This commit is contained in:
mischa 2023-05-08 08:40:26 +00:00
parent eb7b9c0cd1
commit e7a3260b61
1 changed files with 1 additions and 0 deletions

1
ard.pl
View File

@ -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");