jamesgolick/always_verify_ssl_certificates

redis gem and always_verify_ssl_certificates incompatible

danielktaylor opened this issue · 1 comments

(I'm using the redis 2.2 library with ruby 1.8.7-2011.03 :002)

require 'rubygems'
=> true
require 'redis'
=> true
Redis.new(:host => 'localhost', :port => 6379)
=> #<Redis client v2.2.0 connected to redis://localhost:6379/0 (Redis v2.6.2)>
require 'always_verify_ssl_certificates'
=> true
Redis.new(:host => 'localhost', :port => 6379)
Errno::ECONNREFUSED: Connection refused - Unable to connect to Redis on localhost:6379

actually this is an issue with resolv-replace, it's a problem with redis 2.2

connecting to "127.0.0.1" works, but "localhost" does not.

looks like it's trying to do IPV6 for localhost on my mac and things go haywire