[PATCH] extracting CISCO_PROXY_PAC env variable
- From: Atul Anand <atulhjp gmail com>
- To: networkmanager-list gnome org
- Cc: dwmw2 infradead org
- Subject: [PATCH] extracting CISCO_PROXY_PAC env variable
- Date: Fri, 24 Jun 2016 00:43:45 +0530
---
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)) {
--
2.5.5
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]