new connection address hack to work with ruby 1.9.3 and 2.0.0, for both http and https