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_loop option for portability. Patch by Jeremy Evans. [ruby-trunk - Bug #9351] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f04556111
commit
9b4f2adcc1
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Jan 4 10:15:47 2014 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rinda/ring.rb (Rinda::RingFinger#make_socket): Use
|
||||
ipv4_multicast_loop option for portability. Patch by Jeremy Evans.
|
||||
[ruby-trunk - Bug #9351]
|
||||
|
||||
Fri Jan 3 19:09:00 2014 Eric Wong <normalperson@yhbt.net>
|
||||
|
||||
* ext/socket/socket.c (rsock_sys_fail_host_port): save and restore errno
|
||||
|
|
|
@ -413,7 +413,7 @@ module Rinda
|
|||
soc = Socket.new(addrinfo.pfamily, addrinfo.socktype, addrinfo.protocol)
|
||||
|
||||
if addrinfo.ipv4_multicast? then
|
||||
soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_LOOP, true)
|
||||
soc.setsockopt(Socket::Option.ipv4_multicast_loop(1))
|
||||
soc.setsockopt(:IPPROTO_IP, :IP_MULTICAST_TTL,
|
||||
[@multicast_hops].pack('c'))
|
||||
elsif addrinfo.ipv6_multicast? then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue