From f9970ab65c71e8a9b007fd37b57a966af06008d7 Mon Sep 17 00:00:00 2001 From: FliegenKLATSCH Date: Thu, 4 May 2023 08:39:45 +0200 Subject: [PATCH] Remove unwanted reverse lookup --- .../java/org/apache/sshd/common/util/net/SshdSocketAddress.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshd-common/src/main/java/org/apache/sshd/common/util/net/SshdSocketAddress.java b/sshd-common/src/main/java/org/apache/sshd/common/util/net/SshdSocketAddress.java index 2bbbd3677..9f51a7622 100644 --- a/sshd-common/src/main/java/org/apache/sshd/common/util/net/SshdSocketAddress.java +++ b/sshd-common/src/main/java/org/apache/sshd/common/util/net/SshdSocketAddress.java @@ -399,7 +399,7 @@ public static SshdSocketAddress toSshdSocketAddress(SocketAddress addr) { return (SshdSocketAddress) addr; } else if (addr instanceof InetSocketAddress) { InetSocketAddress isockAddress = (InetSocketAddress) addr; - return new SshdSocketAddress(isockAddress.getHostName(), isockAddress.getPort()); + return new SshdSocketAddress(isockAddress.getHostString(), isockAddress.getPort()); } else { throw new UnsupportedOperationException("Cannot convert " + addr.getClass().getSimpleName() + "=" + addr + " to " + SshdSocketAddress.class.getSimpleName());