Understanding Auto-Reconnect and Config Polling
Auto-Reconnect
The client automatically detects connection losses and reconnects. The connection is considered lost when the last handshake is older than 180 seconds and 3 consecutive checks fail.
Reconnection uses exponential backoff: wait time increases from 2 seconds up to a maximum of 60 seconds. After 10 failed attempts, the client gives up.
Config Polling
Every 5 minutes (default, adjustable 30s-3600s), the client checks if the WireGuard configuration has changed on the server. If a change is detected, the new config is downloaded and the tunnel is automatically rebuilt.
Heartbeat
The client periodically sends its status (connected/disconnected, traffic, uptime) to the server. This keeps the Last seen timestamp in the Web UI current.