diff options
-rw-r--r-- | src/leap/bitmask/services/eip/vpnprocess.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/eip/vpnprocess.py b/src/leap/bitmask/services/eip/vpnprocess.py index 580bd572..d58d44da 100644 --- a/src/leap/bitmask/services/eip/vpnprocess.py +++ b/src/leap/bitmask/services/eip/vpnprocess.py @@ -664,7 +664,14 @@ class VPNManager(object): parts = stripped.split(",") if len(parts) < 5: continue - ts, status_step, ok, ip, remote = parts + try: + ts, status_step, ok, ip, remote = parts + except ValueError: + # Workaround for newer openvpn version + try: + ts, status_step, ok, ip, remote, port, _, _, _ = parts + except ValueError: + ts, status_step, ok, ip, remote, port, _, _ = parts state = status_step if state != self._last_state: |