Skip to content

Commit

Permalink
Fix localport for openssh >= 8.0 (#618)
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz Weichert <moritz.weichert@check24.de>
  • Loading branch information
moritz31 and Moritz Weichert committed Jul 9, 2020
1 parent 7bde5c1 commit 5888535
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/** A channel for creating a direct TCP/IP connection from the server to a remote address. */
public class DirectConnection extends DirectTCPIPChannel {
public static final String LOCALHOST = "localhost";
public static final int LOCALPORT = 65536;
public static final int LOCALPORT = 65535;

public DirectConnection(Connection conn, String remoteHost, int remotePort) {
super(conn, new Parameters(LOCALHOST, LOCALPORT, remoteHost, remotePort));
Expand Down

0 comments on commit 5888535

Please sign in to comment.