Skip to content

Commit

Permalink
NullPointerException (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxg committed Dec 28, 2024
1 parent c37ec15 commit c6b019e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/schmizz/sshj/SocketClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public void connectVia(Channel channel, String hostname, int port) throws IOExce

/** Connect using the supplied InputStream and OutputStream. */
public void connectVia(InputStream input, OutputStream output) throws IOException {
this.hostname = null;
this.port = -1;
this.hostname = "localhost";
this.port = 65535;
this.input = input;
this.output = output;
this.tunneled = true;
Expand Down

0 comments on commit c6b019e

Please sign in to comment.