1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Small fix so that the host address of baa clients is show (which will be wrong if mongrel is behind a proxy server).

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@143 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
zedshaw 2006-04-04 02:38:54 +00:00
parent f0147fbc0f
commit 08b5169a10

View file

@ -448,7 +448,7 @@ module Mongrel
rescue EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL
# ignored
rescue HttpParserError
STDERR.puts "BAD CLIENT (#{params["REMOTE_ADDR"]}): #$!"
STDERR.puts "BAD CLIENT (#{client.peeraddr.last}): #$!"
STDERR.puts "REQUEST DATA: #{data}"
rescue => details
STDERR.puts "ERROR: #$!"