summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/eip.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-02-04 23:09:27 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2017-02-23 00:40:38 +0100
commit7f07ffa13eaa51419af6f019bf9b36b298274485 (patch)
tree3f6c2ed42e9160ed1ff437f2744cd38440a5b870 /src/leap/bitmask/vpn/eip.py
parent229d672dbb68c5e25612f744595febc60ef6e3cb (diff)
[feature] add up/down traffic in status
Diffstat (limited to 'src/leap/bitmask/vpn/eip.py')
-rw-r--r--src/leap/bitmask/vpn/eip.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/eip.py b/src/leap/bitmask/vpn/eip.py
index c2aa4fb3..0c47cc32 100644
--- a/src/leap/bitmask/vpn/eip.py
+++ b/src/leap/bitmask/vpn/eip.py
@@ -75,7 +75,11 @@ class EIPManager(object):
def get_status(self):
vpn_status = self._vpn.status
fw_status = self._firewall.status
+
result = {'EIP': vpn_status,
'firewall': fw_status}
+ if vpn_status == 'CONNECTED':
+ traffic = self._vpn.traffic_status
+ result['↑↑↑'] = traffic['up']
+ result['↓↓↓'] = traffic['down']
return result
-