From 727f6c9fa65f392d9776efdcdfe3e7ab45372107 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Mon, 21 Jul 2025 10:27:23 +0200 Subject: [PATCH] Fix bug when --nodns none --ip is supplied Due to rebasing determine_ip_addresses() in #2852 it was forgotten to add any manually specified IP address to the IP addresses to show and to scan. This fixes #2854 . --- testssl.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testssl.sh b/testssl.sh index e362ad7..c380c3c 100755 --- a/testssl.sh +++ b/testssl.sh @@ -22419,6 +22419,7 @@ determine_ip_addresses() { else : # standard case fi + IPADDRs2SHOW=$(newline_to_spaces "$ip4 $ip6") if "$do_ipv4_only"; then if [[ -z "$ip4" ]]; then @@ -22434,6 +22435,7 @@ determine_ip_addresses() { fi IPADDRs2CHECK=$(newline_to_spaces "$ip6") else + # Here we populate for general cases $IPADDRs2CHECK for addr in $IPADDRs2SHOW; do is_ipv6addr $addr && ! "$IPv6_OK" && continue [[ -z $IPADDRs2CHECK ]] && IPADDRs2CHECK="${addr}" || IPADDRs2CHECK="${IPADDRs2CHECK} ${addr}"