Skip to content

Commit 5888535

Browse files
moritz31Moritz Weichert
andauthored
Fix localport for openssh >= 8.0 (#618)
Co-authored-by: Moritz Weichert <moritz.weichert@check24.de>
1 parent 7bde5c1 commit 5888535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/schmizz/sshj/connection/channel/direct/DirectConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/** A channel for creating a direct TCP/IP connection from the server to a remote address. */
2121
public class DirectConnection extends DirectTCPIPChannel {
2222
public static final String LOCALHOST = "localhost";
23-
public static final int LOCALPORT = 65536;
23+
public static final int LOCALPORT = 65535;
2424

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

0 commit comments

Comments
 (0)