From c6ec9990e71a3f35ae716bb6bd3be1c86ca5284e Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Wed, 2 Sep 2015 08:02:02 -0700 Subject: [PATCH] Unconditionally get inline matches Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Nat.pm | 2 +- Shorewall/Perl/Shorewall/Rules.pm | 2 +- Shorewall/Perl/Shorewall/Tc.pm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index 954da6ca3..baba7f270 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -80,7 +80,7 @@ sub process_one_masq1( $$$$$$$$$$ ) if ( $interfacelist =~ /^INLINE\((.+)\)$/ ) { $interfacelist = $1; $inlinematches = get_inline_matches(0); - } elsif ( $config{INLINE_MATCHES} ) { + } else { $inlinematches = get_inline_matches(0); } # diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index a036ff138..60246f946 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -2269,7 +2269,7 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$$ ) { if ( $basictarget eq 'INLINE' ) { ( $action, $basictarget, $param, $loglevel, $raw_matches ) = handle_inline( FILTER_TABLE, 'filter', $action, $basictarget, $param, $loglevel ); - } elsif ( $config{INLINE_MATCHES} ) { + } else { $raw_matches = get_inline_matches(0); } # diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 3d6df47d3..176e6a2d7 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -749,7 +749,7 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$ ) { if ( $cmd eq 'INLINE' ) { ( $target, $cmd, $params, $junk, $raw_matches ) = handle_inline( MANGLE_TABLE, 'mangle', $action, $cmd, $params, '' ); - } elsif ( $config{INLINE_MATCHES} ) { + } else { $raw_matches = get_inline_matches(0); }