This is an automated email from the ASF dual-hosted git repository.

twolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git


The following commit(s) were added to refs/heads/master by this push:
     new f9970ab65 Remove unwanted reverse lookup
f9970ab65 is described below

commit f9970ab65c71e8a9b007fd37b57a966af06008d7
Author: FliegenKLATSCH <m...@fliegenklatsch.de>
AuthorDate: Thu May 4 08:39:45 2023 +0200

    Remove unwanted reverse lookup
---
 .../main/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 class SshdSocketAddress extends SocketAddress {
             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());

Reply via email to