[network-manager-openswan/dcbw/libreswan: 5/11] core: replace previous configurations when starting a connection



commit 5e178d0f498a0a3797f34d0c66ab05fef0c3cbeb
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 9491733..ad6227c 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]