Added support for running on node with local=true
ip_port field is set to "_local[NODEID]". Closes #
This commit is contained in:
parent
6a4e0db5b2
commit
d44e83f3a2
|
@ -44,6 +44,8 @@ public class Utils {
|
|||
builder.field("host", inetAddress.getHostName());
|
||||
builder.field("ip_port", inetAddress.getHostAddress() + ":" + inetSocketAddress.getPort());
|
||||
}
|
||||
} else if (node.address().uniqueAddressTypeId() == 2) { // local transport
|
||||
builder.field("ip_port", "_" + node.address()); // will end up being "_local[ID]"
|
||||
}
|
||||
|
||||
if (!node.attributes().isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue