mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +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
|
||||
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):
|
||||
# Connect to socket
|
||||
self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||
|
||||
Reference in New Issue
Block a user