Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.214 kb
ip = lambda do |env|
address = if env["HTTP_X_FORWARDED_FOR"]
env["HTTP_X_FORWARDED_FOR"].split(",").first
else
env["REMOTE_ADDR"]
end
[200, {"Content-Type" => "text/plain"}, [address]]
end
run ip
Jump to Line
Something went wrong with that request. Please try again.