diff options
-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 |