From 89e8fcace3349c36cef33b7e59bcd03ca5fc2c3d Mon Sep 17 00:00:00 2001 From: Dirk Date: Tue, 17 Jan 2017 14:03:09 +0100 Subject: [PATCH] FIX #566 --- testssl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index fd6ff90..e045230 100755 --- a/testssl.sh +++ b/testssl.sh @@ -8381,10 +8381,10 @@ display_rdns_etc() { done outln fi - if "$LOCAL_A"; then - outln " A record via $CORRECT_SPACES /etc/hosts " - elif [[ -n "$CMDLINE_IP" ]]; then + if [[ -n "$CMDLINE_IP" ]]; then outln " A record via $CORRECT_SPACES supplied IP \"$CMDLINE_IP\"" + elif "$LOCAL_A"; then + outln " A record via $CORRECT_SPACES /etc/hosts " fi if [[ -n "$rDNS" ]]; then printf " %-23s %s" "rDNS ($nodeip):" "$rDNS"