run -T show on protected
This commit is contained in:
parent
bf244d01e4
commit
43956f72ed
1
ptrd.pl
1
ptrd.pl
|
@ -142,6 +142,7 @@ sub http_child {
|
||||||
} elsif ($token eq 'protect') {
|
} elsif ($token eq 'protect') {
|
||||||
my $protect = qx(pfctl -t protected -T add $client_ip 2>&1);
|
my $protect = qx(pfctl -t protected -T add $client_ip 2>&1);
|
||||||
chomp $protect;
|
chomp $protect;
|
||||||
|
qx(pfctl -t protected -T show > /etc/pf.protected);
|
||||||
|
|
||||||
_log("$client_ip $token $protect");
|
_log("$client_ip $token $protect");
|
||||||
_http_response($c, {content_type => 'text/plain'}, "Received [$client_ip -> protect] $protect");
|
_http_response($c, {content_type => 'text/plain'}, "Received [$client_ip -> protect] $protect");
|
||||||
|
|
Loading…
Reference in New Issue