summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/vpn/process.py')
-rw-r--r--src/leap/bitmask/vpn/process.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/process.py b/src/leap/bitmask/vpn/process.py
index d35857c7..8c61db21 100644
--- a/src/leap/bitmask/vpn/process.py
+++ b/src/leap/bitmask/vpn/process.py
@@ -91,7 +91,8 @@ class _VPNProcess(protocol.ProcessProtocol):
if socket_port == 'unix':
folder = os.path.split(self._host)[0]
- assert os.path.isfile(folder)
+ if not os.path.isdir(folder):
+ os.makedirs(folder)
self._management_endpoint = clientFromString(
reactor, b"unix:path=%s" % socket_host)
else: