Skip to content

Instantly share code, notes, and snippets.

Created March 14, 2018 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a81d252184c62ca71d920a00474a56e7 to your computer and use it in GitHub Desktop.
Save anonymous/a81d252184c62ca71d920a00474a56e7 to your computer and use it in GitHub Desktop.
to_delete = []
candidates.each{|x|
begin
Resolv.getaddress x.name
sleep 0.1
rescue Resolv::ResolvError
to_delete.append x
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment