From 95cdeea14de9de357cf3f2bb4e114b41a3eea059 Mon Sep 17 00:00:00 2001 From: Manevolent Date: Wed, 21 Dec 2022 22:09:38 -0700 Subject: [PATCH] Update check_routes.sh --- wireguard/check_routes.sh | 3 +++ 1 file changed, 3 insertions(+) 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