projects
/
selectricity-live
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05b5b42
)
Display IP address on unresolvable hosts
author
John Dong
<jdong@mit.edu>
Thu, 16 Aug 2007 20:38:28 +0000
(16:38 -0400)
committer
John Dong
<jdong@mit.edu>
Thu, 16 Aug 2007 20:38:28 +0000
(16:38 -0400)
app/views/quickvote/results.rhtml
patch
|
blob
|
history
diff --git
a/app/views/quickvote/results.rhtml
b/app/views/quickvote/results.rhtml
index b82d5e3865f4bd2891e2908c6104e407302277f1..f53bf3f05be99ee3ef7ad6f543f3dd82fae05454 100644
(file)
--- a/
app/views/quickvote/results.rhtml
+++ b/
app/views/quickvote/results.rhtml
@@
-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?