summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-09-22 15:07:30 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-09-22 15:07:30 +0000
commit3f74df78137c625d199b9710e588b56f4217ff08 (patch)
tree9ed91ef465f016ad46686dba3d0635e22cd0cf8e
parent336cfbbc9718ecdc205948497d1ff57f5cdae3a0 (diff)
use "force" keyword when adding to Phase 1 section, otherwise isakmpd will
write some annyoing warning to the logs...
-rw-r--r--sbin/ipsecctl/ike.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c
index 14ebb904110..c22167f44bb 100644
--- a/sbin/ipsecctl/ike.c
+++ b/sbin/ipsecctl/ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.c,v 1.3 2005/09/20 17:30:58 hshoexer Exp $ */
+/* $OpenBSD: ike.c,v 1.4 2005/09/22 15:07:29 hshoexer Exp $ */
/*
* Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -56,7 +56,7 @@ int ike_ipsec_establish(int, struct ipsec_rule *);
static void
ike_section_peer(struct ipsec_addr *peer, FILE *fd)
{
- fprintf(fd, SET "[Phase 1]:%s=peer-%s\n", peer->name, peer->name);
+ fprintf(fd, SET "[Phase 1]:%s=peer-%s force\n", peer->name, peer->name);
fprintf(fd, SET "[peer-%s]:Phase=1 force\n", peer->name);
fprintf(fd, SET "[peer-%s]:Address=%s force\n", peer->name, peer->name);
}