mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
ipv4_multicast_ttl option for portability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
864e0c90c3
commit
7295607815
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Jan 4 10:17:54 2014 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
|
||||
ipv4_multicast_ttl option for portability.
|
||||
|
||||
Sat Jan 4 10:15:47 2014 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
|
||||
|
|
|
@ -414,8 +414,7 @@ module Rinda
|
|||
|
||||
if addrinfo.ipv4_multicast? then
|
||||
soc.setsockopt(Socket::Option.ipv4_multicast_loop(1))
|
||||
soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_TTL,
|
||||
[@multicast_hops].pack('c'))
|
||||
soc.setsockopt(Socket::Option.ipv4_multicast_ttl(@multicast_hops))
|
||||
elsif addrinfo.ipv6_multicast? then
|
||||
soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP, true)
|
||||
soc.setsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS,
|
||||
|
|
Loading…
Reference in a new issue