summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-22 04:37:41 +0900
committerkali <kali@leap.se>2012-08-22 04:37:41 +0900
commit5ab2163a89ad7bc303f436af738aa0e7e6bb24d4 (patch)
treea99174147e701826468fce1c6aa450895e074aa6 /src
parenta048ecc7d709f6378ccba6201131b8c03df94716 (diff)
fix for failing bad port init test
Diffstat (limited to 'src')
-rw-r--r--src/leap/eip/openvpnconnection.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/eip/openvpnconnection.py b/src/leap/eip/openvpnconnection.py
index a230d229..3972b617 100644
--- a/src/leap/eip/openvpnconnection.py
+++ b/src/leap/eip/openvpnconnection.py
@@ -85,9 +85,12 @@ to be triggered for each one of them.
self.host = host
if isinstance(port, str) and port.isdigit():
port = int(port)
+ elif port == "unix":
+ port = "unix"
+ else:
+ port = None
self.port = port
self.password = password
- #self.tn = None
def _set_autostart(self):
config = self.config