summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-09 05:40:12 +0900
committerkali <kali@leap.se>2013-01-09 05:40:12 +0900
commit1e116fe9453a9010338820394ace05a4f0bcc648 (patch)
treef1e70727cb1a627df86a90bcdbd309488b652915 /src
parent239a95a65055a5b7128894faf30938496382fbe1 (diff)
dont shut down when conn lost
Diffstat (limited to 'src')
-rw-r--r--src/leap/base/checks.py2
-rw-r--r--src/leap/base/exceptions.py4
2 files changed, 4 insertions, 2 deletions
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.")