forked from extern/shorewall_code
Clean up push_irule() after branching 4.4.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
0791ea6698
commit
2b2200145f
@ -1069,17 +1069,11 @@ sub push_irule( $$$;@ ) {
|
|||||||
|
|
||||||
$chainref->{referenced} = 1;
|
$chainref->{referenced} = 1;
|
||||||
|
|
||||||
if ( $ruleref->{simple} = ! @matches ) {
|
unless ( $ruleref->{simple} = ! @matches ) {
|
||||||
push @{$chainref->{rules}}, $ruleref;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
#
|
|
||||||
# In the future, we can expand port lists here
|
|
||||||
#
|
|
||||||
$chainref->{dont_optimize} = 1 if push_matches( $ruleref, @matches );
|
$chainref->{dont_optimize} = 1 if push_matches( $ruleref, @matches );
|
||||||
push @{$chainref->{rules}}, $ruleref;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
push @{$chainref->{rules}}, $ruleref;
|
||||||
|
|
||||||
trace( $chainref, 'A', @{$chainref->{rules}}, format_rule( $chainref, $ruleref ) ) if $debug;
|
trace( $chainref, 'A', @{$chainref->{rules}}, format_rule( $chainref, $ruleref ) ) if $debug;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user