diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-16 01:31:41 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-15 17:35:40 -0800 |
commit | e10e520d47fa96cf549c7d544d6575baa8ed748a (patch) | |
tree | f05d6128cf2ea7173d70e1ad0205580a7df8c28a /lib | |
parent | e5faa4da78af196ee5abbccf197671fd8e77adad (diff) | |
download | raindrops-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')
-rw-r--r-- | lib/raindrops/middleware.rb | 2 |
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? |