From 5f9bdc4a63f80499abedbc956a89b5589499b72a Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 31 Dec 2023 03:37:10 +0100 Subject: [PATCH] debug --- scripts/_common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index b66497b..b81b4c2 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -81,10 +81,13 @@ process_ips(){ # check if the so-called IP really is one if [[ $(ynh_validate_ip4 --ip_address="$ip") == 0 || $(ynh_validate_ip6 --ip_address="$ip") == 0 ]]; then # don't process if the IP is public and the port 53 closed + echo "IP validated: $ip" if [ "$(is_public_ip "$ip")" == 0 ] && [ "$open_port_53" == "false" ]; then # don't add this IP (do nothing) + echo "don't add" : else + echo "add" # add this IP and a space as IP delimiter processed_ips+="$ip " fi