Skip to content

Instantly share code, notes, and snippets.

@bluemonk
Created July 29, 2010 12:21
Show Gist options
  • Select an option

  • Save bluemonk/497974 to your computer and use it in GitHub Desktop.

Select an option

Save bluemonk/497974 to your computer and use it in GitHub Desktop.
diff --git a/lib/whois/server.rb b/lib/whois/server.rb
index 787efa8..df6f5ae 100644
--- a/lib/whois/server.rb
+++ b/lib/whois/server.rb
@@ -162,6 +162,7 @@ module Whois
end
def self.find_for_ipv4(qstring)
+ cippirimerlo
ip = IPAddr.new(qstring)
definitions(:ipv4).each do |definition|
if IPAddr.new(definition.first).include?(ip)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment