From f1bc8a54c980dfceeab00401ddda9dfeb806719e Mon Sep 17 00:00:00 2001 From: Rob White Date: Thu, 29 Sep 2022 10:58:51 +0100 Subject: [PATCH] Fix - ensure nat_traversal_poll_interval defaults to 10 seconds if not set Also remove unwanted debug output. Signed-off-by: Rob White --- forward_authentication_service/libs/authmon.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forward_authentication_service/libs/authmon.sh b/forward_authentication_service/libs/authmon.sh index 4ee17c8..34ed5da 100755 --- a/forward_authentication_service/libs/authmon.sh +++ b/forward_authentication_service/libs/authmon.sh @@ -100,9 +100,8 @@ phpcli=$3 option="nat_traversal_poll_interval" get_option_from_config loop_interval=$option_value -echo "!!$loop_interval!!" -if [ "$loop_interval" -le 0 ] || [ "$loop_interval" -ge 60 ]; then +if [ "$loop_interval" = "" ] || [ "$loop_interval" -le 0 ] || [ "$loop_interval" -ge 60 ]; then loop_interval=10 fi