From 975e43b8cb8d4cdd3e4ac126db894d1053cb8a02 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 11 May 2013 13:08:59 +0000 Subject: * test/rinda/test_rinda.rb: Socket.getifaddrs may returns an interface which #addr method returns nil for venet0 in OpenVZ. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rinda/test_rinda.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/rinda/test_rinda.rb') diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index e0da835d0f..1577af8405 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -533,9 +533,7 @@ end module RingIPv6 def prepare_ipv6(r) Socket.getifaddrs.each do |ifaddr| - p ifaddr - end - Socket.getifaddrs.each do |ifaddr| + next unless ifaddr.addr next unless ifaddr.addr.ipv6_linklocal? next if ifaddr.name[0, 2] == "lo" r.multicast_interface = ifaddr.ifindex -- cgit v1.2.3