diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-03-01 19:32:54 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-03-03 10:50:54 +0100 |
commit | 92957c4b666d6e5fc54275d8857692a12b0fb209 (patch) | |
tree | 2a0ae0439211b0c6476b5e5854af3db95aedfc4d /src/leap/bitmask/vpn/launcher.py | |
parent | 1accda8a692798fccdd67584b1e4950057faddeb (diff) |
[feat] get VPN params from eip-service.json
Instead of hardcoding them in the code.
Diffstat (limited to 'src/leap/bitmask/vpn/launcher.py')
-rw-r--r-- | src/leap/bitmask/vpn/launcher.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/launcher.py b/src/leap/bitmask/vpn/launcher.py index 28910fa..3006d6d 100644 --- a/src/leap/bitmask/vpn/launcher.py +++ b/src/leap/bitmask/vpn/launcher.py @@ -229,7 +229,11 @@ class VPNLauncher(object): openvpn_configuration = vpnconfig.get_openvpn_configuration() for key, value in openvpn_configuration.items(): - args += ['--%s' % (key,), value] + if type(value) is bool: + if value: + args += ['--%s' % (key,)] + else: + args += ['--%s' % (key,), value] user = getpass.getuser() |