Browse Source

Bug Fix

pull/122/head
Koushik M L N 6 years ago
parent
commit
247a59f785
  1. 2
      wetty.mjs

2
wetty.mjs

@ -51,7 +51,7 @@ function getCommand(socket, sshuser, sshpass, sshhost, sshport, sshauth, sshkey)
if (!sshpass)
sshPath = sshuser || match ? 'ssh' : path.join(__dirname, 'bin/ssh');
else
sshPath = ['sshpass', '-p', sshpass].join(' ');
sshPath = ['sshpass', '-p', sshpass, 'ssh'].join(' ');
console.log("PATH ", sshPath);
const ssh = match ? `${match[0].split('/ssh/').pop().split('?')[0]}@${sshhost}` : sshAddress;
console.log("SSH ", ssh);

Loading…
Cancel
Save