Skip to content

Commit

Permalink
Added special case to echo back client IP address if an empty string …
Browse files Browse the repository at this point in the history
…is passed to ip2coordinates
  • Loading branch information
petewarden committed Feb 13, 2012
1 parent 4896c88 commit d980505
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dstk_server.rb
Expand Up @@ -987,7 +987,6 @@ def boilerpipe(input_html)

callback = params[:callback]
ips_string = params[:ips]
$stderr.puts "ips_string='#{ips_string}'"
if !ips_string or ips_string == '""'
# This is a special case. If you pass in an empty string, use the IP address of the requesting
# client, since javascript callers may not have access to it themselves.
Expand Down

0 comments on commit d980505

Please sign in to comment.