summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/bonafide/config.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-10-21 16:59:47 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-21 17:17:35 -0400
commit5cb173a9939f051fce06bfe540a87881bde9680f (patch)
tree8185a4517876e07cb52033aef416205065ab7c42 /src/leap/bitmask/bonafide/config.py
parent79dec982945e784477d13f7dd5adff7ce96424f7 (diff)
[bug] use tcp endpoint for windows
Diffstat (limited to 'src/leap/bitmask/bonafide/config.py')
-rw-r--r--src/leap/bitmask/bonafide/config.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/bitmask/bonafide/config.py b/src/leap/bitmask/bonafide/config.py
index 441f6a49..28210fb0 100644
--- a/src/leap/bitmask/bonafide/config.py
+++ b/src/leap/bitmask/bonafide/config.py
@@ -20,6 +20,7 @@ Configuration for a LEAP provider.
import datetime
import json
import os
+import platform
import shutil
import sys
@@ -43,7 +44,10 @@ logger = Logger()
APPNAME = "bonafide"
-ENDPOINT = "ipc:///tmp/%s.sock" % APPNAME
+if platform.system() == 'Windows':
+ ENDPOINT = "tcp://127.0.0.1:5001"
+else:
+ ENDPOINT = "ipc:///tmp/%s.sock" % APPNAME
def get_path_prefix(standalone=False):
@@ -133,6 +137,8 @@ def get_username_and_provider(full_id):
def list_providers():
path = os.path.join(_preffix, "leap", "providers")
path = os.path.expanduser(path)
+ if not os.path.isdir(path):
+ os.makedirs(path)
return os.listdir(path)