r/protonvpn: watchdog: Also watch for EAP/FAIL

Occasionally, ProtonVPN servers randomly reject the EAP authentication
credentials.  When this happens, the tunnel fails and is not restarted
automatically by strongSwan.  As such, the watchdog needs to react to
this event as well.
jenkins-master
Dustin 2021-06-27 09:23:46 -05:00
parent 6b9b87a406
commit 1fcfc80254
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class AsyncDaemon(BaseAsyncDaemon):
if not isinstance(message, str): if not isinstance(message, str):
log.debug('Invalid message: %r', message) log.debug('Invalid message: %r', message)
return return
if message.startswith('giving up'): if message.startswith('giving up') or 'EAP/FAIL' in message:
log.error('VPN tunnel failed!') log.error('VPN tunnel failed!')
await self.reconfigure() await self.reconfigure()