summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-28 23:35:10 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:18:54 -0400
commit7e18c2f4c0cdeb99a807b2f1e8b94f6af99a29c0 (patch)
tree4f69b93ff0b1b3302f481cff05947242a7903cb6 /src/leap
parentc232797f8f37be1c630e533fc7cd06a10604a647 (diff)
[bug] assert vpn management folder exists
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/vpn/process.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py
index a2b384e..d35857c 100644
--- a/src/leap/bitmask/vpn/process.py
+++ b/src/leap/bitmask/vpn/process.py
@@ -90,6 +90,8 @@ class _VPNProcess(protocol.ProcessProtocol):
self._port = socket_port
if socket_port == 'unix':
+ folder = os.path.split(self._host)[0]
+ assert os.path.isfile(folder)
self._management_endpoint = clientFromString(
reactor, b"unix:path=%s" % socket_host)
else: