From f4ab559dbf72d61c9c642e40628bb0fb868622f9 Mon Sep 17 00:00:00 2001 From: Dirk Wetter Date: Tue, 15 Jul 2025 17:29:28 +0200 Subject: [PATCH] Fix message when IPv6 needs to be tested too "Testing all IPv4 addresses" --- testssl.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index d95c9c0..cfa12de 100755 --- a/testssl.sh +++ b/testssl.sh @@ -23284,7 +23284,12 @@ run_mx_all_ips() { determine_ip_addresses || continue if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check MULTIPLE_CHECKS=true - pr_bold "Testing all IPv4 addresses (port $PORT): "; outln "$IPADDRs" + if [[ "$HAS_IPv6" ]]; then + pr_bold "Testing all IP addresses (port $PORT): " + else + pr_bold "Testing all IPv4 addresses (port $PORT): " + fi + outln "$IPADDRs" for ip in $IPADDRs; do NODEIP="$ip" lets_roll "${STARTTLS_PROTOCOL}" @@ -25213,7 +25218,12 @@ lets_roll() { determine_ip_addresses if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check MULTIPLE_CHECKS=true - pr_bold "Testing all IPv4 addresses (port $PORT): "; outln "$IPADDRs" + if [[ "$HAS_IPv6" ]]; then + pr_bold "Testing all IP addresses (port $PORT): " + else + pr_bold "Testing all IPv4 addresses (port $PORT): " + fi + outln "$IPADDRs" for ip in $IPADDRs; do draw_line "-" $((TERM_WIDTH * 2 / 3)) outln