aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-04-27 11:33:06 +0200
committerTobias Brunner <tobias@strongswan.org>2011-04-27 11:33:06 +0200
commit67ec2be6653b528bb1a04f5aa3fc0c45276c5ed1 (patch)
tree185db014d79c75e201be93c8b6a325f8b80ac7b3 /src
parentcce8f652322a7816dce549e7e9359982533581de (diff)
downloadstrongswan-67ec2be6653b528bb1a04f5aa3fc0c45276c5ed1.tar.bz2
strongswan-67ec2be6653b528bb1a04f5aa3fc0c45276c5ed1.tar.xz
IKEv2 was only partially the default for connections with auto=route and auto=start.
Connections with auto=route and auto=start that did not have keyexchange=ikev2 explicitly specified did get added to charon, but did not get routed or started by charon.
Diffstat (limited to 'src')
-rw-r--r--src/starter/starter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index c3ba54f1d..fcef2f7ff 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -714,7 +714,7 @@ int main (int argc, char **argv)
if (conn->startup == STARTUP_START)
{
- if (conn->keyexchange == KEY_EXCHANGE_IKEV2)
+ if (conn->keyexchange != KEY_EXCHANGE_IKEV1)
{
if (starter_charon_pid())
{
@@ -731,7 +731,7 @@ int main (int argc, char **argv)
}
else if (conn->startup == STARTUP_ROUTE)
{
- if (conn->keyexchange == KEY_EXCHANGE_IKEV2)
+ if (conn->keyexchange != KEY_EXCHANGE_IKEV1)
{
if (starter_charon_pid())
{