diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-18 23:07:51 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-18 23:07:51 +0000 |
commit | 879ac9dec2ccb6a006ae6aa075110f6a8946547c (patch) | |
tree | c5f6b4664f34b2cb0f8614911c52db768f448264 /lib | |
parent | 4ee9d27f3a909a4eef2a2966a94629202312925a (diff) |
merge revision(s) 44492: [Backport #9351]
* 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/branches/ruby_2_1@45041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rinda/ring.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb index 1ecc56a4f5..4e9efadc35 100644 --- a/lib/rinda/ring.rb +++ b/lib/rinda/ring.rb @@ -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 |