summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-08-16 18:50:29 +0200
committerKali Kaneko <kali@leap.se>2013-08-16 18:50:29 +0200
commit4dc8562400a5d06ce0fa43fa317bc619f9cdd9ae (patch)
tree70ab7d27cc4d76e9d265c0fcdeda2866ffa356b6
parent4f8ddf9978cee13f22635fd3d1e42b190ca838b3 (diff)
Move a little bit down the setenv flag in linux.
Otherwise it is not taken as an argument for openvpn.
-rw-r--r--src/leap/bitmask/services/eip/vpnlaunchers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/bitmask/services/eip/vpnlaunchers.py b/src/leap/bitmask/services/eip/vpnlaunchers.py
index 31a1c17b..fb9ac46f 100644
--- a/src/leap/bitmask/services/eip/vpnlaunchers.py
+++ b/src/leap/bitmask/services/eip/vpnlaunchers.py
@@ -402,15 +402,15 @@ class LinuxVPNLauncher(VPNLauncher):
openvpn = first(openvpn_possibilities)
args = []
- args += [
- '--setenv', "LEAPOPENVPN", "1"
- ]
-
pkexec = self.maybe_pkexec()
if pkexec:
args.append(openvpn)
openvpn = first(pkexec)
+ args += [
+ '--setenv', "LEAPOPENVPN", "1"
+ ]
+
if openvpn_verb is not None:
args += ['--verb', '%d' % (openvpn_verb,)]