- rDNS: support multiple Answer records

This commit is contained in:
Simon Zolin 2019-12-05 13:06:52 +03:00
parent 0a09c7eb4d
commit 56a0c9684b
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func (r *RDNS) resolve(ip string) string {
log.Debug("Error while making an rDNS lookup for %s: %s", ip, err) log.Debug("Error while making an rDNS lookup for %s: %s", ip, err)
return "" return ""
} }
if len(resp.Answer) != 1 { if len(resp.Answer) == 0 {
log.Debug("No answer for rDNS lookup of %s", ip) log.Debug("No answer for rDNS lookup of %s", ip)
return "" return ""
} }