[network-manager-openconnect] Set can-persist property
- From: dwmw2 <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect] Set can-persist property
- Date: Thu, 8 Mar 2018 19:53:56 +0000 (UTC)
commit f8e386e2c9522cb93a604eab9e534cb1f98ff18c
Author: David Woodhouse <dwmw2 infradead org>
Date: Thu Mar 8 19:49:01 2018 +0000
Set can-persist property
OpenConnect can persist and reconnect when the underlying physical
connection goes away or changes. It does rather depend on NetworkManager
not screwing up the routes and leaving the VPN gateway routed *through*
the VPN itself, and it would be kind of nice to accelerate the reconnect
by sending SIGUSR2 to openconnect to make it do an immediate reconnect
when a physical link comes back up, instead of waiting for Dead Peer
Detection. But basically, it should work.
src/nm-openconnect-service-openconnect-helper.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-openconnect-service-openconnect-helper.c b/src/nm-openconnect-service-openconnect-helper.c
index 94eae77..279230c 100644
--- a/src/nm-openconnect-service-openconnect-helper.c
+++ b/src/nm-openconnect-service-openconnect-helper.c
@@ -519,6 +519,9 @@ main (int argc, char *argv[])
else
helper_failed (proxy, "VPN Gateway");
+ val = g_variant_new_boolean (TRUE);
+ g_variant_builder_add (&builder, "{sv}", NM_VPN_PLUGIN_CAN_PERSIST, val);
+
/* Tunnel device */
val = str_to_gvariant (getenv ("TUNDEV"), FALSE);
if (val)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]