1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use IPv4 address on connecting to 127.0.0.1.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-07-12 01:27:42 +00:00
parent 9696b3eb16
commit 558edd5192

View file

@ -654,7 +654,7 @@ class TestNetHTTPLocalBind < Test::Unit::TestCase
def _select_local_ip_address def _select_local_ip_address
Socket.ip_address_list.find { |addr| Socket.ip_address_list.find { |addr|
not addr.ipv4_loopback? and not addr.ipv4_multicast? addr.ipv4? and not addr.ipv4_loopback? and not addr.ipv4_multicast?
}.ip_address }.ip_address
end end
end end