mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
26cb14f846
commit
975e43b8cb
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat May 11 22:07:42 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/rinda/test_rinda.rb: Socket.getifaddrs may returns an interface
|
||||
which #addr method returns nil for venet0 in OpenVZ.
|
||||
|
||||
Sat May 11 21:56:34 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/raddrinfo.c (rsock_inspect_sockaddr): Add casts to
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue