mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-15 18:51:28 +02:00
Merge pull request #2844 from testssl/fix_misleading_ipv4_msg
Fix message when IPv6 needs to be tested too
This commit is contained in:
commit
10af37029c
14
testssl.sh
14
testssl.sh
@ -23284,7 +23284,12 @@ run_mx_all_ips() {
|
|||||||
determine_ip_addresses || continue
|
determine_ip_addresses || continue
|
||||||
if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check
|
if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check
|
||||||
MULTIPLE_CHECKS=true
|
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
|
for ip in $IPADDRs; do
|
||||||
NODEIP="$ip"
|
NODEIP="$ip"
|
||||||
lets_roll "${STARTTLS_PROTOCOL}"
|
lets_roll "${STARTTLS_PROTOCOL}"
|
||||||
@ -25213,7 +25218,12 @@ lets_roll() {
|
|||||||
determine_ip_addresses
|
determine_ip_addresses
|
||||||
if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check
|
if [[ $(count_words "$IPADDRs") -gt 1 ]]; then # we have more than one ipv4 address to check
|
||||||
MULTIPLE_CHECKS=true
|
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
|
for ip in $IPADDRs; do
|
||||||
draw_line "-" $((TERM_WIDTH * 2 / 3))
|
draw_line "-" $((TERM_WIDTH * 2 / 3))
|
||||||
outln
|
outln
|
||||||
|
Loading…
x
Reference in New Issue
Block a user