diff --git a/scripts/_common.sh b/scripts/_common.sh index 965f608..c93d0ae 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -64,7 +64,7 @@ process_ips(){ for i in $(seq "$(echo "$ips" | wc -w)" -1 1); do ip=$(echo "$ips" | awk "{print \$$i}") # check if the so-called IP really is one - if ynh_validate_ip4 --ip_address="$ip"; then + if ynh_validate_ip4 --ip_address="$ip" || ynh_validate_ip6 --ip_address="$ip"; then # if the IP is public and the user doesn't want to expose port 53, skip it if is_public_ip "$ip" && [ "$open_port_53" == "false" ] ; then break