From 1e116fe9453a9010338820394ace05a4f0bcc648 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 9 Jan 2013 05:40:12 +0900 Subject: dont shut down when conn lost --- src/leap/base/checks.py | 2 ++ src/leap/base/exceptions.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/leap') diff --git a/src/leap/base/checks.py b/src/leap/base/checks.py index dc2602c2..c7839548 100644 --- a/src/leap/base/checks.py +++ b/src/leap/base/checks.py @@ -68,6 +68,8 @@ class LeapNetworkChecker(object): if not platform.system() == "Linux": raise NotImplementedError + # XXX GET DARWIN IMPLEMENTATION + f = open("/proc/net/route") route_table = f.readlines() f.close() diff --git a/src/leap/base/exceptions.py b/src/leap/base/exceptions.py index c5e56b76..2e31b33b 100644 --- a/src/leap/base/exceptions.py +++ b/src/leap/base/exceptions.py @@ -90,8 +90,8 @@ class CannotResolveDomainError(LeapException): "Domain cannot be found") -class TunnelNotDefaultRouteError(CriticalError): +class TunnelNotDefaultRouteError(LeapException): message = "Tunnel connection dissapeared. VPN down?" usermessage = translate( "Errors", - "The Encrypted Connection was lost. Shutting down...") + "The Encrypted Connection was lost.") -- cgit v1.2.3