Small optimizations in expand_rule()

Signed-off-by: Tom Eastep <teastep@shorewall.net>

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9837 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2009-04-10 16:16:25 +00:00
parent ff014f328b
commit e0040f4011

View File

@ -2341,7 +2341,7 @@ sub expand_rule( $$$$$$$$$$ )
# #
# Trim disposition # Trim disposition
# #
$disposition =~ s/\s+.*//; $disposition =~ s/\s.*//;
# #
# Handle Log Level # Handle Log Level
# #
@ -2415,9 +2415,7 @@ sub expand_rule( $$$$$$$$$$ )
# #
fatal_error "Bridge ports may not appear in the SOURCE column of this file" if port_to_bridge( $iiface ); fatal_error "Bridge ports may not appear in the SOURCE column of this file" if port_to_bridge( $iiface );
my $networks = get_interface_nets ( $iiface ); push_command $chainref, join( '', 'for source in ', get_interface_nets( $iiface) , '; do' ), 'done';
push_command $chainref, join( '', 'for source in ', $networks, '; do' ), 'done';
$rule .= '-s $source '; $rule .= '-s $source ';
} else { } else {