Skip to content

Commit f9970ab

Browse files
FliegenKLATSCHtomaswolf
authored andcommitted
Remove unwanted reverse lookup
1 parent d4b951a commit f9970ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshd-common/src/main/java/org/apache/sshd/common/util/net/SshdSocketAddress.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public static SshdSocketAddress toSshdSocketAddress(SocketAddress addr) {
399399
return (SshdSocketAddress) addr;
400400
} else if (addr instanceof InetSocketAddress) {
401401
InetSocketAddress isockAddress = (InetSocketAddress) addr;
402-
return new SshdSocketAddress(isockAddress.getHostName(), isockAddress.getPort());
402+
return new SshdSocketAddress(isockAddress.getHostString(), isockAddress.getPort());
403403
} else {
404404
throw new UnsupportedOperationException("Cannot convert " + addr.getClass().getSimpleName()
405405
+ "=" + addr + " to " + SshdSocketAddress.class.getSimpleName());

0 commit comments

Comments
 (0)