[network-manager-openswan/dcbw/libreswan: 10/16] core: replace previous configurations when starting a connection
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openswan/dcbw/libreswan: 10/16] core: replace previous configurations when starting a connection
- Date: Tue, 2 Dec 2014 01:31:15 +0000 (UTC)
commit 54fd770df2bed38bcab48a4b2da85947f8d5a534
Author: Dan Williams <dcbw redhat com>
Date: Mon Oct 20 14:43:12 2014 -0500
core: replace previous configurations when starting a connection
The VPN config may have changed, but we still use the same UUID.
src/nm-openswan-service.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-openswan-service.c b/src/nm-openswan-service.c
index cca42f9..449f158 100644
--- a/src/nm-openswan-service.c
+++ b/src/nm-openswan-service.c
@@ -986,7 +986,7 @@ connect_step (NMOpenSwanPlugin *self, GError **error)
case CONNECT_STEP_CONFIG_ADD:
if (!do_spawn (&priv->pid, &fd, NULL, error, priv->ipsec_path,
- "auto", "--add", "--config", "-", uuid, NULL))
+ "auto", "--replace", "--config", "-", uuid, NULL))
return FALSE;
priv->watch_id = g_child_watch_add (priv->pid, child_watch_cb, self);
nm_openswan_config_write (fd, priv->connection, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]