Allow inline matches with IP[6]TABLES

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-12-29 10:13:00 -08:00
parent 1634267faa
commit 66a04e4819

View File

@ -2091,9 +2091,9 @@ sub split_line2( $$;$$$ ) {
}
} elsif ( $inline ) {
#
# This file supports INLINE
# This file supports INLINE or IPTABLES
#
if ( $currentline =~ /^\s*INLINE(?:\(.*\)|:.*)?\s/) {
if ( $currentline =~ /^\s*INLINE(?:\(.*\)|:.*)?\s/ || $currentline =~ /^\s*IP6?TABLES(?:\(.*\)|:.*)?\s/ ) {
$inline_matches = $pairs;
if ( $columns =~ /^(\s*|.*[^&@%]){(.*)}\s*$/ ) {