IKEv2 was only partially the default for connections with auto=route and auto=start.
authorTobias Brunner <tobias@strongswan.org>
Wed, 27 Apr 2011 09:33:06 +0000 (11:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 27 Apr 2011 09:33:06 +0000 (11:33 +0200)
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.

src/starter/starter.c

index c3ba54f..fcef2f7 100644 (file)
@@ -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())
                                                        {