зеркало из https://github.com/github/ruby.git
* 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:
Родитель
864e0c90c3
Коммит
7295607815
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче