Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Clustering strategy for the Rancher container platform (see: https://github.com/rancher/rancher)
- LocalEpmd strategy that uses epmd to discover nodes on the local host
- Gossip strategy multicast interface is used for adding multicast membership

## 2.0.0

Expand Down
7 changes: 4 additions & 3 deletions lib/strategy/gossip.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ defmodule Cluster.Strategy.Gossip do
[
multicast_if: sanitize_ip(multicast_if),
multicast_ttl: ttl,
multicast_loop: true
multicast_loop: true,
add_membership: {multicast_addr, sanitize_ip(multicast_if)}
]

:else ->
[
multicast_ttl: ttl,
multicast_loop: true
multicast_loop: true,
add_membership: {multicast_addr, {0, 0, 0, 0}}
]
end

Expand All @@ -120,7 +122,6 @@ defmodule Cluster.Strategy.Gossip do
ip: ip,
reuseaddr: true,
broadcast: true,
add_membership: {multicast_addr, {0, 0, 0, 0}}
] ++ multicast_opts ++ reuse_port()

{:ok, socket} = :gen_udp.open(port, options)
Expand Down