[network-manager-openconnect/th/tmp: 2/2] extracting CISCO_PROXY_PAC env variable
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect/th/tmp: 2/2] extracting CISCO_PROXY_PAC env variable
- Date: Wed, 6 Jul 2016 11:58:18 +0000 (UTC)
commit 5d0e3492368dc8ce5085e2354b9bdc4cd1c2588f
Author: Atul Anand <atulhjp gmail com>
Date: Fri Jun 24 00:43:45 2016 +0530
extracting CISCO_PROXY_PAC env variable
https://mail.gnome.org/archives/networkmanager-list/2016-June/msg00154.html
src/nm-openconnect-service-openconnect-helper.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
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)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]