log.info("OpenVPN Authenticator started")
- try:
- while True:
- line = self._read_line()
-
- if line.startswith(">CLIENT"):
- self._client_event(line)
+ while True:
+ line = self._read_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)
+ if line.startswith(">CLIENT"):
+ self._client_event(line)
log.info("OpenVPN Authenticator terminated")
@staticmethod
def _b64decode(s):
return base64.b64decode(s.encode()).decode()
-
+
@staticmethod
def _escape(s):
return s.replace(" ", "\ ")