summaryrefslogtreecommitdiff
path: root/src/leap/eip/eipconnection.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-06 04:20:23 +0900
committerkali <kali@leap.se>2012-09-06 04:20:23 +0900
commitbb5d092b6f57321a12f0d7575e221b0cc68f063d (patch)
treef8edf58ebdef82a0229739f62fb0d9fbcb633a2a /src/leap/eip/eipconnection.py
parent75f4128f5ed515c4df57275bf1479ccdf741c83f (diff)
parentfc8a54a40645412e9c738723e54159bfda40cfde (diff)
Merge branch 'feature/temp-socket-path' into develop
Closes #505: make management socket to listen on temporal files, different for 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):
"""
"""