From 5ef5aa8cdbea403e029edd33e46dbcbc70dd8f8a Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 5 Aug 2014 07:34:24 -0700 Subject: [PATCH] Allow inline matches in an action file Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index e00c94a5d..59b624fae 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1673,9 +1673,11 @@ sub process_action($$) { $origdest = $connlimit = $time = $headers = $condition = $helper = '-'; } else { ($target, $source, $dest, $proto, $ports, $sports, $origdest, $rate, $user, $mark, $connlimit, $time, $headers, $condition, $helper ) - = split_line1( 'action file', + = split_line2( 'action file', \%rulecolumns, - $action_commands ); + $action_commands, + undef, + 1 ); } fatal_error 'TARGET must be specified' if $target eq '-';