diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index eef86ea2b9..98d9531a60 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -334,8 +334,8 @@ class TestSocket < Test::Unit::TestCase end when /darwin/ if !ai.ipv6? - elsif ai.ipv6_unique_local? - next true # iCloud addresses do not work, see Bug 6692 + elsif ai.ipv6_unique_local? && /darwin1[01]\./ =~ RUBY_PLATFORM + next true # iCloud addresses do not work, see Bug #6692 elsif ifr_name = ai.ip_address[/%(.*)/, 1] # Mac OS X may sets IFDISABLED as FreeBSD does ulSIOCGIFFLAGS = 3223349521