Issue #3787 has been updated by Akira Matsuda.
Oh, sorry. You're right.
In my case, while I can connect to 1200 via v4,
% ruby -d -v -rsocket -e "p TCPSocket.new('127.0.0.1', 1200)"
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]
#<TCPSocket:0x10018a078>
it fails to connect using v6.
% ruby -d -rsocket -e "p TCPSocket.new('::1', 1200)"
Exception `Errno::ECONNREFUSED' at -e:1 - Connection refused - connect(2)
-e:1:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from -e:1:in `new'
from -e:1
And I'm sure '::1' stands for localhost.
% ruby -d -rsocket -e "p IPSocket.getaddress('localhost')"
"::1"
Should I post another ticket for this?
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3787
----------------------------------------
http://redmine.ruby-lang.org