From a0c6ddf0797334e302405a0ef55deaa3a82ac64a Mon Sep 17 00:00:00 2001 From: Robert Wolf Date: Wed, 22 Apr 2020 09:12:38 +0200 Subject: [PATCH] fix HAS_HOST and HAS_NSLOOKUP condition --- getssl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getssl b/getssl index 35cfbe2..a6fc1dc 100755 --- a/getssl +++ b/getssl @@ -532,14 +532,14 @@ check_config() { # check the config files for all obvious errors fi fi - if [[ -n "$HAS_HOST" ]]; then + if [[ "$HAS_HOST" == true ]]; then debug "DNS lookup using host ${d}" if [[ "$(host "${d}" |grep -c -i "^${d}")" -ge 1 ]]; then found_ip=true fi fi - if [[ -n "$HAS_NSLOOKUP" ]]; then + if [[ "$HAS_NSLOOKUP" == true ]]; then debug "DNS lookup using nslookup -query AAAA ${d}" if [[ "$(nslookup -query=AAAA "${d}"|grep -c -i "^${d}.*has AAAA address")" -ge 1 ]]; then debug "found IPv6 record for ${d}"