diff options
author | kali <kali@leap.se> | 2013-01-16 00:59:54 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-01-16 00:59:54 +0900 |
commit | 9c260efd6f9821f5d97cc426f501203bfc8a1fde (patch) | |
tree | 3a0a31077cb6cb1e4ec1bbcfc2cd08e6b08adf4b /src/leap/baseapp/eip.py | |
parent | f90f9df1d09e12ba64e9401530684d5a36220ad3 (diff) | |
parent | bf39c45eddc62733fdb72b4f46cdb81ec649cb30 (diff) |
Merge branch 'feature/openvpn_logs_mgmt_interface' into develop
Diffstat (limited to 'src/leap/baseapp/eip.py')
-rw-r--r-- | src/leap/baseapp/eip.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/baseapp/eip.py b/src/leap/baseapp/eip.py index 41f4c541..4fcbee3f 100644 --- a/src/leap/baseapp/eip.py +++ b/src/leap/baseapp/eip.py @@ -9,6 +9,7 @@ from leap.baseapp.dialogs import ErrorDialog from leap.baseapp import constants from leap.eip import exceptions as eip_exceptions from leap.eip.eipconnection import EIPConnection +from leap.base.checks import EVENT_CONNECT_REFUSED logger = logging.getLogger(name=__name__) @@ -174,6 +175,11 @@ class EIPConductorAppMixin(object): self.tun_read_bytes.setText(tun_read) self.tun_write_bytes.setText(tun_write) + # connection information via management interface + log = self.conductor.get_log() + error_matrix = [(EVENT_CONNECT_REFUSED, (self.start_or_stopVPN, ))] + self.network_checker.checker.parse_log_and_react(log, error_matrix) + @QtCore.pyqtSlot() def start_or_stopVPN(self): """ |