diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-12 01:27:42 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-12 01:27:42 +0000 |
commit | 558edd51921d1c2380a773c8e1785299bcfd9cbd (patch) | |
tree | d2e24b0e60942817195be9c301985a5b402b631d /test/net | |
parent | 9696b3eb16acd9c90f32fd65e3ed95120d8e73c3 (diff) |
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
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/http/test_http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |