Skip to content

Commit a7a259b

Browse files
author
Paras Jain
committed
using inetSocketAddress.getHostString() instead of inetSocketAddress.getHostName() in StreamOutput
Signed-off-by: Paras Jain <parasjaz@amazon.com>
1 parent 93ce67f commit a7a259b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/opensearch/common/io/stream/StreamOutput.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ public final void writeOptionalInstant(@Nullable Instant instant) throws IOExcep
795795
writers.put(InetSocketAddress.class, (o, v) -> {
796796
final InetSocketAddress inetSocketAddress = (InetSocketAddress) v;
797797
o.writeByte((byte) 27);
798-
o.writeString(inetSocketAddress.getHostName());
798+
o.writeString(inetSocketAddress.getHostString());
799799
o.writeByteArray(inetSocketAddress.getAddress().getAddress());
800800
o.writeInt(inetSocketAddress.getPort());
801801
});

0 commit comments

Comments
 (0)