More minor cleanup of chain name change

This commit is contained in:
Tom Eastep 2009-11-12 12:30:08 -08:00
parent 2d53f8cb0c
commit f904866336
2 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ sub apply_policy_rules() {
ensure_filter_chain $name, 1; ensure_filter_chain $name, 1;
} }
if ( $name =~ /^all2|2all$|^all-|-all$/ ) { if ( $name =~ /^all[-2]|[-2]all$/ ) {
run_user_exit $chainref; run_user_exit $chainref;
policy_rules $chainref , $policy, $loglevel , $default, $config{MULTICAST}; policy_rules $chainref , $policy, $loglevel , $default, $config{MULTICAST};
} }

View File

@ -1924,7 +1924,7 @@ sub generate_matrix() {
next unless $zoneref->{bridge} eq $zone1ref->{bridge}; next unless $zoneref->{bridge} eq $zone1ref->{bridge};
} }
if ( $chain =~ /(2all|-all|_all)$/ ) { if ( $chain =~ /(2all|-all)$/ ) {
if ( $chain ne $last_chain ) { if ( $chain ne $last_chain ) {
$last_chain = $chain; $last_chain = $chain;
push @dest_zones, @temp_zones; push @dest_zones, @temp_zones;