Display IP address on unresolvable hosts
authorJohn Dong <jdong@mit.edu>
Thu, 16 Aug 2007 20:38:28 +0000 (16:38 -0400)
committerJohn Dong <jdong@mit.edu>
Thu, 16 Aug 2007 20:38:28 +0000 (16:38 -0400)
app/views/quickvote/results.rhtml

index b82d5e3865f4bd2891e2908c6104e407302277f1..f53bf3f05be99ee3ef7ad6f543f3dd82fae05454 100644 (file)
@@ -158,7 +158,7 @@ by several other names.</p>
         <% raise ArgumentError.new, "Local Server" if voter.ipaddress == "127.0.0.1" %>
         <% raise ArgumentError.new, "XML-RPC Voter" if voter.ipaddress == "XMLRPC Request" %>
         <% w= Whois::Whois.new(IPAddr.new(voter.ipaddress).to_s,true)%>
-        <%=(w.host == nil or w.host.empty?) ? "Unknown voter" : w.host%>
+        <%=(w.host == nil or w.host.empty?) ? voter.ipaddress : w.host%>
       </td>
       <td>
         <%w.search_whois%>

Benjamin Mako Hill || Want to submit a patch?