Add a comment

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-21 07:57:34 -08:00
parent 70242c0d00
commit 2a965d42b9

View File

@ -1316,7 +1316,7 @@ sub optimize_chain( $ ) {
my $rules = $chainref->{rules}; my $rules = $chainref->{rules};
my $count = 0; my $count = 0;
pop @$rules; pop @$rules; # Pop the plain -j ACCEPT rule at the end of the chain
pop @$rules, $count++ while @$rules && $rules->[-1] =~ /-j ACCEPT\b/; pop @$rules, $count++ while @$rules && $rules->[-1] =~ /-j ACCEPT\b/;