From 7e18c2f4c0cdeb99a807b2f1e8b94f6af99a29c0 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 28 Aug 2017 23:35:10 -0400 Subject: [bug] assert vpn management folder exists --- src/leap/bitmask/vpn/process.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py index a2b384e9..d35857c7 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: -- cgit v1.2.3