diff options
author | kali <kali@leap.se> | 2012-08-22 04:37:41 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-22 04:37:41 +0900 |
commit | 5ab2163a89ad7bc303f436af738aa0e7e6bb24d4 (patch) | |
tree | a99174147e701826468fce1c6aa450895e074aa6 /src/leap/eip/openvpnconnection.py | |
parent | a048ecc7d709f6378ccba6201131b8c03df94716 (diff) |
fix for failing bad port init test
Diffstat (limited to 'src/leap/eip/openvpnconnection.py')
-rw-r--r-- | src/leap/eip/openvpnconnection.py | 5 |
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 |