diff --git a/config/ovpn/openvpn-authenticator b/config/ovpn/openvpn-authenticator index c22e08f0a..36374caf8 100644 --- a/config/ovpn/openvpn-authenticator +++ b/config/ovpn/openvpn-authenticator @@ -104,16 +104,11 @@ class OpenVPNAuthenticator(object): log.info("OpenVPN Authenticator started") - try: - while True: - line = self._read_line() + 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) + if line.startswith(">CLIENT"): + self._client_event(line) log.info("OpenVPN Authenticator terminated") @@ -262,7 +257,7 @@ class OpenVPNAuthenticator(object): @staticmethod def _b64decode(s): return base64.b64decode(s.encode()).decode() - + @staticmethod def _escape(s): return s.replace(" ", "\ ")