[network-manager-openswan/dcbw/libreswan: 5/7] 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: 5/7] core: replace previous configurations when starting a connection
- Date: Mon, 20 Oct 2014 21:45:11 +0000 (UTC)
commit fbf443abff21a7940dae777ba09bf68c5d4d98e3
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 9b5341d..dd8ecce 100644
--- a/src/nm-openswan-service.c
+++ b/src/nm-openswan-service.c
@@ -967,7 +967,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, pluto_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]