summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-21 13:40:18 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-22 13:08:49 -0300
commit30912fed29fd652f69de5a518cf70e6fe04b04f7 (patch)
treeb635a034d23a59f8104d89698a1f5a57e49a1604 /src/leap/gui/mainwindow.py
parent031f84229bb34a62816a9f0fa5d80ae89c285801 (diff)
Make Windows use a regular socket
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 3f29f957..974476a3 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -20,6 +20,7 @@ Main window for the leap client
"""
import os
import logging
+import platform
import tempfile
import keyring
@@ -605,9 +606,14 @@ class MainWindow(QtGui.QMainWindow):
"""
# TODO: make this properly multiplatform
- host = os.path.join(tempfile.mkdtemp(prefix="leap-tmp"),
- 'openvpn.socket')
- port = "unix"
+
+ if platform.system() == "Windows":
+ host = "localhost"
+ port = "9876"
+ else:
+ host = os.path.join(tempfile.mkdtemp(prefix="leap-tmp"),
+ 'openvpn.socket')
+ port = "unix"
return host, port