From 558edd51921d1c2380a773c8e1785299bcfd9cbd Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 12 Jul 2012 01:27:42 +0000 Subject: 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 --- test/net/http/test_http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/net/http') diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index 0f57e0ce2f..5741d99f28 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -654,7 +654,7 @@ class TestNetHTTPLocalBind < Test::Unit::TestCase def _select_local_ip_address 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 end end -- cgit v1.2.3