Skip to content

Commit

Permalink
Android: native: adapt to libsshtunnel v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jan 7, 2024
1 parent e04b3ab commit 61d172d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/app/src/main/cpp/vncconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ JNIEXPORT jboolean JNICALL Java_com_coboltforge_dontmind_multivnc_VNCConn_rfbIni
// ssh-tunneling, check whether it's password- or key-based
if(cSshPassword) {
// password-based
tunnel = ssh_tunnel_open_with_password(cSshHost, cSshUser, cSshPassword, cHost, port, cl, onSshFingerprintCheck, onSshError);
tunnel = ssh_tunnel_open_with_password(cSshHost, 22, cSshUser, cSshPassword, cHost, port, cl, onSshFingerprintCheck, onSshError);
} else {
// key-based
tunnel = ssh_tunnel_open_with_privkey(cSshHost, cSshUser, (char*)cSshPrivKey, cSshPrivKeyLen, cSshPrivKeyPassword, cHost, port, cl, onSshFingerprintCheck, onSshError);
tunnel = ssh_tunnel_open_with_privkey(cSshHost, 22, cSshUser, (char*)cSshPrivKey, cSshPrivKeyLen, cSshPrivKeyPassword, cHost, port, cl, onSshFingerprintCheck, onSshError);
}

cl->serverHost = strdup("127.0.0.1");
Expand Down

0 comments on commit 61d172d

Please sign in to comment.