Skip to content

Commit 10af370

Browse files
authored
Merge pull request #2844 from testssl/fix_misleading_ipv4_msg
Fix message when IPv6 needs to be tested too
2 parents e2f08a0 + f4ab559 commit 10af370

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

testssl.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23284,7 +23284,12 @@ run_mx_all_ips() {
2328423284
determine_ip_addresses || continue
2328523285
if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check
2328623286
MULTIPLE_CHECKS=true
23287-
pr_bold "Testing all IPv4 addresses (port $PORT): "; outln "$IPADDRs"
23287+
if [[ "$HAS_IPv6" ]]; then
23288+
pr_bold "Testing all IP addresses (port $PORT): "
23289+
else
23290+
pr_bold "Testing all IPv4 addresses (port $PORT): "
23291+
fi
23292+
outln "$IPADDRs"
2328823293
for ip in $IPADDRs; do
2328923294
NODEIP="$ip"
2329023295
lets_roll "${STARTTLS_PROTOCOL}"
@@ -25213,7 +25218,12 @@ lets_roll() {
2521325218
determine_ip_addresses
2521425219
if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check
2521525220
MULTIPLE_CHECKS=true
25216-
pr_bold "Testing all IPv4 addresses (port $PORT): "; outln "$IPADDRs"
25221+
if [[ "$HAS_IPv6" ]]; then
25222+
pr_bold "Testing all IP addresses (port $PORT): "
25223+
else
25224+
pr_bold "Testing all IPv4 addresses (port $PORT): "
25225+
fi
25226+
outln "$IPADDRs"
2521725227
for ip in $IPADDRs; do
2521825228
draw_line "-" $((TERM_WIDTH * 2 / 3))
2521925229
outln

0 commit comments

Comments
 (0)