Re: [PATCH] extracting CISCO_PROXY_PAC env variable



On Fri, 2016-06-24 at 00:43 +0530, Atul Anand wrote:
---
 src/nm-openconnect-service-openconnect-helper.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/nm-openconnect-service-openconnect-helper.c 
b/src/nm-openconnect-service-openconnect-helper.c
index 5256d13..f0f9c17 100644
--- a/src/nm-openconnect-service-openconnect-helper.c
+++ b/src/nm-openconnect-service-openconnect-helper.c
@@ -514,6 +514,11 @@ main (int argc, char *argv[])
      if (val)
              g_variant_builder_add (&ip4builder, "{sv}", NM_VPN_PLUGIN_IP4_CONFIG_DOMAIN, val);
 
+     /* Proxy */
+     val = str_to_gvariant (getenv ("CISCO_PROXY_PAC"), TRUE);
+     if (val)
+             g_variant_builder_add (&builder, "{sv}", NM_VPN_PLUGIN_CONFIG_PROXY_PAC, val);
+
      /* MTU  */
      tmp = getenv ("INTERNAL_IP4_MTU");
      if (tmp && strlen (tmp)) {

I'm looking at doing a 1.2.3 release of NetworkManager-openconnect, and
would quite like to include this (#if NM_CHECK_VERSION(1,3,0))

How close are we to being able to merge the *basics* which at least let
VPN plugins provide the information, even if nothing's yet being *done*
with it?

-- 
David Woodhouse                            Open Source Technology Centre
David Woodhouse intel com                              Intel Corporation

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]