Nodes' hostname is now serialized to 'host' to mimic of the same change in ES 1.0 RC1

This commit is contained in:
Boaz Leskes 2014-01-10 21:28:03 +01:00
parent c0f1e9f715
commit 5aebb91293

View file

@ -41,7 +41,7 @@ public class Utils {
InetAddress inetAddress = inetSocketAddress.getAddress();
if (inetAddress != null) {
builder.field("ip", inetAddress.getHostAddress());
builder.field("hostname", inetAddress.getHostName());
builder.field("host", inetAddress.getHostName());
builder.field("ip_port", inetAddress.getHostAddress() + ":" + inetSocketAddress.getPort());
}
}