diff options
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r-- | lib/rainbows.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 0914609..58ba23f 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -77,10 +77,9 @@ module Rainbows # returns a string representing the address of the given client +io+ # For local UNIX domain sockets, this will return a string referred - # to by the (non-frozen) Unicorn::HttpRequest::LOCALHOST constant. + # to by the (non-frozen) Kgio::LOCALHOST constant. def addr(io) # :nodoc: - io.respond_to?(:peeraddr) ? - io.peeraddr[-1] : Unicorn::HttpRequest::LOCALHOST + io.respond_to?(:peeraddr) ? io.peeraddr[-1] : Kgio::LOCALHOST end # :stopdoc: |