X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/9eabcf350184159475e1c88e9cd603a22e2bb465..f38aa87edf153cf8f5f5c93a78fbf1424a8e62f2:/app/views/quickvote/list_voters.rhtml diff --git a/app/views/quickvote/list_voters.rhtml b/app/views/quickvote/list_voters.rhtml index 1672499..695794f 100644 --- a/app/views/quickvote/list_voters.rhtml +++ b/app/views/quickvote/list_voters.rhtml @@ -27,13 +27,17 @@ voter.ipaddress =~ /^172\.[1-3]/ %> <% w=nil + puts "WHOIS #{voter.ipaddress}" if Cache and w=Cache.get("WHOIS:#{voter.ipaddress}") elsif Cache - w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true) + puts "CREATE" + w= Whois::Whois.new(IPAddr.new(voter.ipaddress),false) + puts "SEARCH" w.search_whois + puts "DONE" Cache.set("WHOIS:#{voter.ipaddress}", w) else - w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true) + w= Whois::Whois.new(IPAddr.new(voter.ipaddress),false) w.search_whois end