mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
openvpn-authenticator: Drop some dead code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Tested-by: Adolf Belka <adolf.belka@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
92a9ce54bc
commit
d7618ccba8
@@ -97,18 +97,6 @@ class OpenVPNAuthenticator(object):
|
|||||||
# Send the command
|
# Send the command
|
||||||
self._write_line(command)
|
self._write_line(command)
|
||||||
|
|
||||||
return # XXX Code below doesn't work
|
|
||||||
|
|
||||||
# Read response
|
|
||||||
response = self._read_line()
|
|
||||||
|
|
||||||
# Handle response
|
|
||||||
if not response.startswith("SUCCESS:"):
|
|
||||||
log.error("Command '%s' returned an error:" % command)
|
|
||||||
log.error(" %s" % response)
|
|
||||||
|
|
||||||
return response
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# Connect to socket
|
# Connect to socket
|
||||||
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
|
|||||||
Reference in New Issue
Block a user