Merge: - rDNS: support multiple Answer records

Close #1230

* commit '56a0c9684bfdb8bebbeea5eb94192a215d8d45a1':
  - rDNS: support multiple Answer records
This commit is contained in:
Simon Zolin 2019-12-05 13:14:57 +03:00
commit b6b26c0681
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)
return ""
}
if len(resp.Answer) != 1 {
if len(resp.Answer) == 0 {
log.Debug("No answer for rDNS lookup of %s", ip)
return ""
}