diff options
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/vpn.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index b5aa913..c8392ea 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -800,7 +800,6 @@ EOD; $ipsecconf .=<<<EOD conn con{$ph1ent['ikeid']} - aggressive = {$aggressive} fragmentation = yes keyexchange = {$keyexchange} {$reauth} @@ -837,6 +836,8 @@ EOD; $ipsecconf .= "\t{$authentication}\n"; if (!empty($peerid_spec)) $ipsecconf .= "\trightid = {$peerid_spec}\n"; + if ($keyexchange == 'ikev1') + aggressive = {$aggressive} } } } |