Skip to content

Commit 727f6c9

Browse files
committed
Fix bug when --nodns none --ip <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 .
1 parent a549acd commit 727f6c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testssl.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22419,6 +22419,7 @@ determine_ip_addresses() {
2241922419
else
2242022420
: # standard case
2242122421
fi
22422+
IPADDRs2SHOW=$(newline_to_spaces "$ip4 $ip6")
2242222423

2242322424
if "$do_ipv4_only"; then
2242422425
if [[ -z "$ip4" ]]; then
@@ -22434,6 +22435,7 @@ determine_ip_addresses() {
2243422435
fi
2243522436
IPADDRs2CHECK=$(newline_to_spaces "$ip6")
2243622437
else
22438+
# Here we populate for general cases $IPADDRs2CHECK
2243722439
for addr in $IPADDRs2SHOW; do
2243822440
is_ipv6addr $addr && ! "$IPv6_OK" && continue
2243922441
[[ -z $IPADDRs2CHECK ]] && IPADDRs2CHECK="${addr}" || IPADDRs2CHECK="${IPADDRs2CHECK} ${addr}"

0 commit comments

Comments
 (0)