mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Also substute the chain name for '@0'.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
15121e0743
commit
e1524763ad
@ -4654,7 +4654,7 @@ sub do_condition( $$ ) {
|
|||||||
|
|
||||||
require_capability 'CONDITION_MATCH', 'A non-empty SWITCH column', 's';
|
require_capability 'CONDITION_MATCH', 'A non-empty SWITCH column', 's';
|
||||||
|
|
||||||
$chain =~ s/[^\w-]//g;
|
$chain =~ s/[^\w-]//g;
|
||||||
# $1 $2 - $3
|
# $1 $2 - $3
|
||||||
while ( $condition =~ m( ^(.*?) @({)?0(?(2)}) (.*)$ )x ) {
|
while ( $condition =~ m( ^(.*?) @({)?0(?(2)}) (.*)$ )x ) {
|
||||||
$condition = join( '', $1, $chain, $3 );
|
$condition = join( '', $1, $chain, $3 );
|
||||||
|
Loading…
Reference in New Issue
Block a user