Make @chain (@{chain}) a synonym for @0 (@{0})

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-12-12 11:55:04 -08:00
parent 8a0abab4cc
commit 5944b4fc7b

View File

@ -4685,7 +4685,7 @@ sub do_condition( $$ ) {
$chain =~ s/[^\w-]//g;
# $1 $2 - $3
while ( $condition =~ m( ^(.*?) @({)?0(?(2)}) (.*)$ )x ) {
while ( $condition =~ m( ^(.*?) @({)?(?:0|chain)(?(2)}) (.*)$ )x ) {
$condition = join( '', $1, $chain, $3 );
}