diff options
-rwxr-xr-x | scripts/vpn-config.pl | 7 | ||||
-rw-r--r-- | templates/vpn/ipsec/ike-group/node.tag/key-exchange/node.def | 7 |
2 files changed, 5 insertions, 9 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl index f1d4e46..4e56a99 100755 --- a/scripts/vpn-config.pl +++ b/scripts/vpn-config.pl @@ -897,13 +897,10 @@ if ( $vcVPN->exists('ipsec') ) { my $key_exchange = $vcVPN->returnValue( "ipsec ike-group $ike_group key-exchange"); if ( defined($key_exchange) ) { - if ($key_exchange eq 'auto') { - $genout .= "\tkeyexchange=ike\n"; - } - elsif ($key_exchange eq 'ikev1') { + if ($key_exchange eq 'ikev1') { $genout .= "\tkeyexchange=ikev1\n"; } - elsif ($key_exchange eq 'ikev2') { + if ($key_exchange eq 'ikev2') { $genout .= "\tkeyexchange=ikev2\n"; } } diff --git a/templates/vpn/ipsec/ike-group/node.tag/key-exchange/node.def b/templates/vpn/ipsec/ike-group/node.tag/key-exchange/node.def index e3555d4..f68dc69 100644 --- a/templates/vpn/ipsec/ike-group/node.tag/key-exchange/node.def +++ b/templates/vpn/ipsec/ike-group/node.tag/key-exchange/node.def @@ -1,7 +1,6 @@ help: Key Exchange Version type: txt default: "ikev1" -syntax:expression: $VAR(@) in "ike", "ikev1", "ikev2"; "must be ike, ikev1 or ikev2" -val_help: ike; Automatically negoiatate Key Exchange version -val_help: ikev1; Force IKEv1 for Key Exchange [DEFAULT] -val_help: ikev2; Force IKEv2 for Key Exchange +syntax:expression: $VAR(@) in "ikev1", "ikev2"; "must be ikev1 or ikev2" +val_help: ikev1; Use IKEv1 for Key Exchange [DEFAULT] +val_help: ikev2; Use IKEv2 for Key Exchange |