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
parent
6b9b87a406
commit
1fcfc80254
|
@ -186,7 +186,7 @@ class AsyncDaemon(BaseAsyncDaemon):
|
|||
if not isinstance(message, str):
|
||||
log.debug('Invalid message: %r', message)
|
||||
return
|
||||
if message.startswith('giving up'):
|
||||
if message.startswith('giving up') or 'EAP/FAIL' in message:
|
||||
log.error('VPN tunnel failed!')
|
||||
await self.reconfigure()
|
||||
|
||||
|
|
Loading…
Reference in New Issue