Skip to content

Commit

Permalink
✅ rescue reverse resolution error [closes #63] (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaz authored Mar 2, 2022
1 parent 4a98be8 commit d2128ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/legitbot/validators/domains.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def reverse_ip(record)
return nil if record.nil?

resolver.getaddress(record.to_s).to_s
rescue Resolv::ResolvError
nil
end
end
end
Expand Down

0 comments on commit d2128ab

Please sign in to comment.