From a4f840ff076c79b023fc2412cc1f7542fb350869 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 31 Dec 2023 03:02:14 +0100 Subject: [PATCH] sigh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 31ea5da..9fd4922 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -79,7 +79,7 @@ process_ips(){ # for each IP for ip in $ips; do # 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 + 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 if [ "$(is_public_ip "$ip")" == 0 ] && [ "$open_port_53" == "false" ]; then # don't add this IP (do nothing)