summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/_status.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-03-17 00:44:00 +0100
committerRuben Pollan <meskio@sindominio.net>2017-03-17 19:13:23 +0100
commit1d09d1a079f8ce577de13ab43c2e9add7a6247bc (patch)
treea84d324912b13b68c9990a515267f0973cf289b3 /src/leap/bitmask/vpn/_status.py
parent09bf881b4f457f731c5a49e88822bc731eda2c96 (diff)
[bug] let's remove hardcoded providers
Diffstat (limited to 'src/leap/bitmask/vpn/_status.py')
-rw-r--r--src/leap/bitmask/vpn/_status.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/_status.py b/src/leap/bitmask/vpn/_status.py
index 7c8ff6b0..d4e8778e 100644
--- a/src/leap/bitmask/vpn/_status.py
+++ b/src/leap/bitmask/vpn/_status.py
@@ -52,8 +52,11 @@ class VPNStatus(object):
self.set_status(status, errcode)
def set_status(self, status, errcode):
- if status in ("AUTH", "WAIT"):
+ if status in ("AUTH", "WAIT", "CONNECTING", "GET_CONFIG",
+ "ASSIGN_IP", "ADD_ROUTES", "RECONNECTING"):
status = "starting"
+ elif status == "EXITING":
+ status = "stopping"
elif status == "CONNECTED":
status = "on"