Windows: VPN does not recover after sleep after 4.8.10.0
Describe the bug
On Windows, after the PC wakes up from sleep, the VPN connection stops passing traffic and requires a manual reconnect in AmneziaVPN.
The same PC, network and VPN server work correctly with AmneziaVPN 4.8.10.0.
I tested the following versions:
4.8.10.0 — works correctly after sleep 4.8.21.0 — connection is lost after sleep, manual reconnect required 5.0.0.5 — same issue, manual reconnect required
So this appears to be a regression introduced somewhere after 4.8.10.0.
To reproduce
- Connect to an AmneziaWG server.
- Put Windows PC to sleep.
- Wake the PC.
- VPN appears connected, but traffic does not work correctly.
- Manually reconnect the VPN.
- Internet/VPN connectivity is restored.
Expected behavior
VPN connection should automatically recover after Windows resumes from sleep, as it does in version 4.8.10.0.
Environment
OS: Windows 10 64-bit Protocol: AmneziaWG Working version: 4.8.10.0 Affected versions tested: 4.8.21.0, 5.0.0.5
Source: amnezia-vpn/amnezia-client