mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Revert "openvpn-authenticator: Avoid infinite loop when losing socket connection"
This reverts commit 92a9ce54bc.
This commit is contained in:
@@ -104,17 +104,12 @@ class OpenVPNAuthenticator(object):
|
||||
|
||||
log.info("OpenVPN Authenticator started")
|
||||
|
||||
try:
|
||||
while True:
|
||||
line = self._read_line()
|
||||
|
||||
if line.startswith(">CLIENT"):
|
||||
self._client_event(line)
|
||||
|
||||
# Terminate the daemon when it loses its connection to the OpenVPN daemon
|
||||
except ConnectionResetError as e:
|
||||
log.error("Connection to OpenVPN has been lost: %s" % e)
|
||||
|
||||
log.info("OpenVPN Authenticator terminated")
|
||||
|
||||
def terminate(self, *args):
|
||||
|
||||
Reference in New Issue
Block a user