mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-24 16:41:30 +02:00
Replace the fixed 1.5s pre-dial sleep with a wait driven by the OS availability verdict: while online only a 200ms settle window is spent (the offline flag lands a few milliseconds after the disconnect that triggered the reconnect), and while offline the guard waits for the network to return, bounded by the same 1.5s budget as before. Without an injected netState the behavior is unchanged. Measured on Android: relay recovery after a network switch drops from 1.7-1.9s to under 500ms after the cut.