diff options
Diffstat (limited to 'src/leap/bitmask/vpn/eip.py')
-rw-r--r-- | src/leap/bitmask/vpn/eip.py | 6 |
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 - |