Copy output interface options rather than jump

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-12-29 18:49:47 -08:00
parent 39f214208a
commit 1da7f52ed5

View File

@ -5859,7 +5859,8 @@ sub add_interface_options( $ ) {
for my $interface ( @interfaces ) { for my $interface ( @interfaces ) {
if ( ( $chain1ref = $filter_table->{output_option_chain $interface} ) && @{$chain1ref->{rules}} ) { if ( ( $chain1ref = $filter_table->{output_option_chain $interface} ) && @{$chain1ref->{rules}} ) {
add_ijump ( $chainref , j => $chain1ref->{name}, @interfaces > 1 ? imatch_dest_dev( $interface ) : () ); copy_rules( $chain1ref, $chainref, 1 );
$chainref->{referenced} = 1;
} }
} }
} }