diff options
author | Kali Kaneko <kali@leap.se> | 2013-08-15 19:54:55 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-08-15 19:54:55 +0200 |
commit | 4f8ddf9978cee13f22635fd3d1e42b190ca838b3 (patch) | |
tree | caf2c805c25c4564a7d5f75d2d66c3ee8517e233 /src/leap/bitmask/services/eip/vpnlaunchers.py | |
parent | 2adb0ef6e0a73f40ce4cd66f7c59d0d777badca9 (diff) | |
parent | 3a0950e936dbe20a22f5809c46406d3a6b9ceffa (diff) |
Merge remote-tracking branch 'chiiph/feature/improve_openvpn_detection' into develop
Diffstat (limited to 'src/leap/bitmask/services/eip/vpnlaunchers.py')
-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,)] |