Skip to content

Commit

Permalink
Remove unwanted reverse lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegenKLATSCH authored and tomaswolf committed May 6, 2023
1 parent d4b951a commit f9970ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f9970ab

Please sign in to comment.