diff --git a/wireguard/check_routes.sh b/wireguard/check_routes.sh index 46daa4f..e998d2b 100644 --- a/wireguard/check_routes.sh +++ b/wireguard/check_routes.sh @@ -56,6 +56,9 @@ do up=false elif [ "$handshake" == "0" ]; then up=false + elif [ "$bytes_recv" == "0" ]; then + # A peer we have never received data from is not available + up=false else delta="$((current_time - handshake))" if [ $delta -gt $TIMEOUT ]; then