mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 11:41:26 +02:00
Slight improvement of regular expression used to insert chain name into rules after '-A'
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fdc3b698a9
commit
99a0226a43
@ -3535,7 +3535,7 @@ sub emitr( $$ ) {
|
|||||||
assert( $chain );
|
assert( $chain );
|
||||||
|
|
||||||
if ( $rule ) {
|
if ( $rule ) {
|
||||||
my $replaced = ($rule =~ s/( ?)-A /$1-A $chain /);
|
my $replaced = ($rule =~ s/((^|[ "])?)-A /$1-A $chain /);
|
||||||
|
|
||||||
if ( substr( $rule, 0, 2 ) eq '-A' ) {
|
if ( substr( $rule, 0, 2 ) eq '-A' ) {
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user