Skip to content

Commit

Permalink
GEODE-5829: Bind locator to 0.0.0.0 instead of localhost (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeppe-pivotal committed Oct 4, 2018
1 parent 9bed808 commit 9199a9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public static Integer createSecondRemoteLocatorWithAPI(int dsId, int localPort,
props.setProperty(DISTRIBUTED_SYSTEM_ID, "" + dsId);
props.setProperty(LOCATORS, "localhost[" + localPort + "]");
props.setProperty(REMOTE_LOCATORS, "localhost[" + remoteLocPort + "]");
Locator locator = Locator.startLocatorAndDS(0, null, InetAddress.getByName("localhost"), props,
Locator locator = Locator.startLocatorAndDS(0, null, InetAddress.getByName("0.0.0.0"), props,
true, true, hostnameForClients);
return locator.getPort();
}
Expand Down

0 comments on commit 9199a9e

Please sign in to comment.