mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-04 05:11:00 +02:00
Fix displayed message when IPv6 needs to be tested too (3.2)
message: "Testing all IPv4 addresses" related to #2843.
This commit is contained in:
parent
0191098432
commit
853cea8530
14
testssl.sh
14
testssl.sh
@ -23134,7 +23134,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}"
|
||||
@ -25055,7 +25060,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user