summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/eip/vpnlauncher.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-10-09 12:35:44 -0300
committerTomás Touceda <chiiph@leap.se>2013-10-09 12:35:44 -0300
commit91eee459a408e7b6faec832514ee9b109e808b9e (patch)
treef66d788a2a3624bae7a76a4c051308c973549ce9 /src/leap/bitmask/services/eip/vpnlauncher.py
parentf1ca78e438f46d266ddcb8f5795cfc4bae4469e8 (diff)
parentae1d24a69806740fea6c5d29779e686ba2747ed0 (diff)
Merge remote-tracking branch 'kali/feature/improve-openvpn-error-detection' into develop
Diffstat (limited to 'src/leap/bitmask/services/eip/vpnlauncher.py')
-rw-r--r--src/leap/bitmask/services/eip/vpnlauncher.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/services/eip/vpnlauncher.py b/src/leap/bitmask/services/eip/vpnlauncher.py
index 935d75f1..82d8ea48 100644
--- a/src/leap/bitmask/services/eip/vpnlauncher.py
+++ b/src/leap/bitmask/services/eip/vpnlauncher.py
@@ -241,6 +241,10 @@ class VPNLauncher(object):
'--ca', providerconfig.get_ca_cert_path()
]
+ args += [
+ '--ping', '10',
+ '--ping-restart', '30']
+
command_and_args = [openvpn] + args
logger.debug("Running VPN with command:")
logger.debug(" ".join(command_and_args))