Commit Diff


commit - bf244d01e4bfd0aac0fc4a2260aeac631b75322d
commit + 43956f72edf3fde5896bbf16282afc7d8178fb7a
blob - 516d006f0c17e3adcb0ce727b3ae4d97033eb629
blob + d0ce4c06d701aed1e852d5e5fd314f8ad93c55c1
--- ptrd.pl
+++ 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");