about summary refs log tree commit homepage
path: root/lib/raindrops/middleware.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-16 01:31:41 +0000
committerEric Wong <normalperson@yhbt.net>2011-02-15 17:35:40 -0800
commite10e520d47fa96cf549c7d544d6575baa8ed748a (patch)
treef05d6128cf2ea7173d70e1ad0205580a7df8c28a /lib/raindrops/middleware.rb
parente5faa4da78af196ee5abbccf197671fd8e77adad (diff)
downloadraindrops-e10e520d47fa96cf549c7d544d6575baa8ed748a.tar.gz
Since Unicorn and Rainbows! support IPv6 now, it makes sense to
support the rfc2732-style addresses it returns.
Diffstat (limited to 'lib/raindrops/middleware.rb')
-rw-r--r--lib/raindrops/middleware.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raindrops/middleware.rb b/lib/raindrops/middleware.rb
index 3507928..79496fc 100644
--- a/lib/raindrops/middleware.rb
+++ b/lib/raindrops/middleware.rb
@@ -22,7 +22,7 @@ class Raindrops::Middleware
     @tcp = @unix = nil
 
     if tmp
-      @tcp = tmp.grep(/\A[^:]+:\d+\z/)
+      @tcp = tmp.grep(/\A.+:\d+\z/)
       @unix = tmp.grep(%r{\A/})
       @tcp = nil if @tcp.empty?
       @unix = nil if @unix.empty?