From 213eca848a0509b3be4bb49992ac67212cf118eb Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 27 Apr 2007 15:06:17 +0000 Subject: [PATCH] Fix another masq ipsec option handling bug -- take 2 git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6133 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Nat.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shorewall-perl/Shorewall/Nat.pm b/Shorewall-perl/Shorewall/Nat.pm index b889d2265..5beee95d1 100644 --- a/Shorewall-perl/Shorewall/Nat.pm +++ b/Shorewall-perl/Shorewall/Nat.pm @@ -56,7 +56,7 @@ sub do_ipsec_options($) "tunnel-dst" => NETWORK, ); my $list=$_[0]; - my $options = '-m policy --pol ipsec --dir out'; + my $options = '-m policy --pol ipsec --dir out '; my $fmt; for my $e ( split ',' , $list ) { @@ -84,11 +84,11 @@ sub do_ipsec_options($) } $options .= $invert; - $options .= " --$e"; - $options .= " $val" if defined $val; + $options .= "--$e "; + $options .= "$val " if defined $val; } - $options . ' '; + $options; } #