diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-08-15 12:01:20 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-08-15 12:01:20 -0300 |
commit | b4e7e9475c9aeaa768bc7c023efe2e96f463fe9d (patch) | |
tree | e0aeb1b3b23350dd6b94927def433a76ccb20980 /src/leap/bitmask | |
parent | a46ae827b144da08c2ce55fd0b53e1c23226bc36 (diff) |
Add LEAPOPENVPN=1 command line env var to the vpnlauncher
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/services/eip/vpnlaunchers.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/leap/bitmask/services/eip/vpnlaunchers.py b/src/leap/bitmask/services/eip/vpnlaunchers.py index 8a127ce9..31a1c17b 100644 --- a/src/leap/bitmask/services/eip/vpnlaunchers.py +++ b/src/leap/bitmask/services/eip/vpnlaunchers.py @@ -402,6 +402,10 @@ class LinuxVPNLauncher(VPNLauncher): openvpn = first(openvpn_possibilities) args = [] + args += [ + '--setenv', "LEAPOPENVPN", "1" + ] + pkexec = self.maybe_pkexec() if pkexec: args.append(openvpn) @@ -658,6 +662,10 @@ class DarwinVPNLauncher(VPNLauncher): openvpn = first(openvpn_possibilities) args = [openvpn] + args += [ + '--setenv', "LEAPOPENVPN", "1" + ] + if openvpn_verb is not None: args += ['--verb', '%d' % (openvpn_verb,)] @@ -825,6 +833,11 @@ class WindowsVPNLauncher(VPNLauncher): openvpn = first(openvpn_possibilities) args = [] + + args += [ + '--setenv', "LEAPOPENVPN", "1" + ] + if openvpn_verb is not None: args += ['--verb', '%d' % (openvpn_verb,)] |