From 7d2b410904fa2111cfb9b600f4ee206e2e7523d5 Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 8 Apr 2009 03:37:15 +0000 Subject: [PATCH] Correct rule generation when an interface is specified as the destination of a PREROUTING rule. Signed-off-by: Tom Eastep git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9831 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index bcb8fe148..783317f51 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -2488,7 +2488,7 @@ sub expand_rule( $$$$$$$$$$$ ) # Dest interface -- must use routing table # fatal_error "Bridge port ($diface) not allowed" if port_to_bridge( $diface ); - push_command( $chainref , 'for dest in ' . interface_nets( $diface) . '; do', 'done' ); + push_command( $chainref , 'for dest in ' . get_interface_nets( $diface) . '; do', 'done' ); $rule .= '-d $dest '; } else {