Commit 9216141d authored by Matija Obreza's avatar Matija Obreza
Browse files

HZ multicast & TCP/IP can’t..

parent 710df3bb
......@@ -61,8 +61,12 @@ public class HazelcastConfigCacher extends HazelcastConfig {
JoinConfig join = network.getJoin();
if (!hasConfiguredMembers()) {
LOG.warn("Enabling Hazelcast multicast, members={}", hazelcastMembers);
join.getMulticastConfig().setEnabled(false);
join.getMulticastConfig().setEnabled(true);
TcpIpConfig tcpIpConfig = join.getTcpIpConfig();
tcpIpConfig.setEnabled(false);
} else {
join.getMulticastConfig().setEnabled(false);
LOG.warn("Enabling TCP/IP discovery for members={}", hazelcastMembers);
TcpIpConfig tcpIpConfig = join.getTcpIpConfig();
tcpIpConfig.setEnabled(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment