From 736c41a50720f30cd3d2fa08842008e30fa37573 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 15 May 2007 20:03:18 +0000 Subject: [PATCH] Some cosmetic changes git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6362 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Rules.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Shorewall-perl/Shorewall/Rules.pm b/Shorewall-perl/Shorewall/Rules.pm index 7136d205b..feaa48216 100644 --- a/Shorewall-perl/Shorewall/Rules.pm +++ b/Shorewall-perl/Shorewall/Rules.pm @@ -1436,9 +1436,10 @@ sub generate_matrix() { for my $hostref ( @{$arrayref} ) { my $ipsec_match = match_ipsec_in $zone , $hostref; for my $net ( @{$hostref->{hosts}} ) { - add_rule - $filter_table->{forward_chain $interface} , - join( '', match_source_net( $net ), $ipsec_match, "-j $frwd_ref->{name}" ); + add_rule( + $filter_table->{forward_chain $interface} , + join( '', match_source_net( $net ), $ipsec_match, "-j $frwd_ref->{name}" ) + ); } } } @@ -1664,9 +1665,10 @@ sub generate_matrix() { # # We defer evaluation of the source net match to accomodate systems without $capabilities{KLUDEFREE}; # - add_rule - $chain3ref , - join( '', "-o $interface1 ", match_source_net($net), match_dest_net($net1), $ipsec_out_match, "-j $chain" ); + add_rule( + $chain3ref , + join( '', "-o $interface1 ", match_source_net($net), match_dest_net($net1), $ipsec_out_match, "-j $chain" ) + ); } } }