summaryrefslogtreecommitdiff
path: root/src/leap/eip/eipconnection.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-06 04:18:27 +0900
committerkali <kali@leap.se>2012-09-06 04:18:27 +0900
commitfc8a54a40645412e9c738723e54159bfda40cfde (patch)
treef8edf58ebdef82a0229739f62fb0d9fbcb633a2a /src/leap/eip/eipconnection.py
parent275c7c20ec08283b50dce0aa753f48ada2ffe2c7 (diff)
openvpn management socket is a temp path on each run
Diffstat (limited to 'src/leap/eip/eipconnection.py')
-rw-r--r--src/leap/eip/eipconnection.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/leap/eip/eipconnection.py b/src/leap/eip/eipconnection.py
index ff71dc76..3a879f01 100644
--- a/src/leap/eip/eipconnection.py
+++ b/src/leap/eip/eipconnection.py
@@ -6,6 +6,7 @@ import logging
import Queue
from leap.eip.checks import EIPConfigChecker
+from leap.eip import config as eipconfig
from leap.eip import exceptions as eip_exceptions
from leap.eip.openvpnconnection import OpenVPNConnection
@@ -30,6 +31,9 @@ class EIPConnection(OpenVPNConnection):
self.status = EIPConnectionStatus(callbacks=status_signals)
self.config_checker = config_checker()
+ host = eipconfig.get_socket_path()
+ kwargs['host'] = host
+
super(EIPConnection, self).__init__(*args, **kwargs)
def has_errors(self):
@@ -72,12 +76,6 @@ class EIPConnection(OpenVPNConnection):
"""
return self.status.current
- #def desired_connection_state(self):
- #"""
- #returns the desired_connection state
- #"""
- #return self.desired_con_state
-
def poll_connection_state(self):
"""
"""