From f75c82932e6aa482fc23de98003717a65ff98112 Mon Sep 17 00:00:00 2001 From: "black.box (Unzoner) team@belodetek.io" Date: Fri, 1 Dec 2023 15:09:41 -0800 Subject: [PATCH] fix: reset loop if any tunnel interface is not passing traffic --- unzoner/src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unzoner/src/main.py b/unzoner/src/main.py index cdbce1f..e4d1df3 100755 --- a/unzoner/src/main.py +++ b/unzoner/src/main.py @@ -647,7 +647,8 @@ def main(): ) ) - if i % POLL_FREQ == 0 and c_gwip: + # check if client side tunnel is still passing traffic (assume not) + if i % POLL_FREQ == 0: # every x cycles per loop c_loss = 100 try: c_loss = ping_host(host=c_gwip)