mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
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
This commit is contained in:
parent
710354caee
commit
213eca848a
@ -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;
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user