Browse Source

fix HAS_HOST and HAS_NSLOOKUP condition

pull/547/head
Robert Wolf 6 years ago
parent
commit
a0c6ddf079
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getssl

+ 2
- 2
getssl View File

@ -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}"


Loading…
Cancel
Save