mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
Fix misleading output
... when instructed to do no DNS queries at all
This commit is contained in:
parent
be987d17a0
commit
9b8dc3a07e
@ -9736,7 +9736,7 @@ certificate_info() {
|
|||||||
pr_italic "$(out_row_aligned_max_width "$all_caa" "$indent " $TERM_WIDTH)"
|
pr_italic "$(out_row_aligned_max_width "$all_caa" "$indent " $TERM_WIDTH)"
|
||||||
fileout "${jsonID}${json_postfix}" "OK" "$all_caa"
|
fileout "${jsonID}${json_postfix}" "OK" "$all_caa"
|
||||||
elif [[ -n "$NODNS" ]]; then
|
elif [[ -n "$NODNS" ]]; then
|
||||||
out "(instructed to minimize DNS queries)"
|
out "(instructed to minimize/skip DNS queries)"
|
||||||
fileout "${jsonID}${json_postfix}" "INFO" "check skipped as instructed"
|
fileout "${jsonID}${json_postfix}" "INFO" "check skipped as instructed"
|
||||||
elif "$DNS_VIA_PROXY"; then
|
elif "$DNS_VIA_PROXY"; then
|
||||||
out "(instructed to use the proxy for DNS only)"
|
out "(instructed to use the proxy for DNS only)"
|
||||||
@ -21268,7 +21268,8 @@ determine_rdns() {
|
|||||||
local saved_openssl_conf="$OPENSSL_CONF"
|
local saved_openssl_conf="$OPENSSL_CONF"
|
||||||
local nodeip="" rdns="" line=""
|
local nodeip="" rdns="" line=""
|
||||||
|
|
||||||
[[ -n "$NODNS" ]] && rDNS="(instructed to minimize DNS queries)" && return 0 # PTR records were not asked for
|
[[ "$NODNS" == none ]] && rDNS="(instructed to skip DNS queries)" && return 0 # No DNS lookups at all
|
||||||
|
[[ "$NODNS" == min ]] && rDNS="(instructed to minimize DNS queries)" && return 0 # PTR records were not asked for
|
||||||
local nodeip="$(tr -d '[]' <<< $NODEIP)" # for DNS we do not need the square brackets of IPv6 addresses
|
local nodeip="$(tr -d '[]' <<< $NODEIP)" # for DNS we do not need the square brackets of IPv6 addresses
|
||||||
OPENSSL_CONF="" # see https://github.com/drwetter/testssl.sh/issues/134
|
OPENSSL_CONF="" # see https://github.com/drwetter/testssl.sh/issues/134
|
||||||
if [[ "$NODE" == *.local ]]; then
|
if [[ "$NODE" == *.local ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user