aboutsummaryrefslogtreecommitdiffstats
path: root/src/whack/whack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/whack/whack.c')
-rw-r--r--src/whack/whack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/whack/whack.c b/src/whack/whack.c
index 98867eab5..8e053dea0 100644
--- a/src/whack/whack.c
+++ b/src/whack/whack.c
@@ -846,6 +846,9 @@ main(int argc, char **argv)
msg.ike = NULL;
msg.pfsgroup = NULL;
+ /* if a connection is added via whack then we assume IKEv1 */
+ msg.ikev1 = TRUE;
+
msg.sa_ike_life_seconds = OAKLEY_ISAKMP_SA_LIFETIME_DEFAULT;
msg.sa_ipsec_life_seconds = PLUTO_SA_LIFE_DURATION_DEFAULT;
msg.sa_rekey_margin = SA_REPLACEMENT_MARGIN_DEFAULT;