Skip to content

Commit

Permalink
Fix spawn options parameter must be object
Browse files Browse the repository at this point in the history
  • Loading branch information
jsastriawan committed Apr 12, 2022
1 parent 0a510c5 commit 447dbe7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ function termClicked() {
tunnelcfg["rauth"]=c.rcookie;
}
sendControlCommand(cmd, null, function (x) {
createPipeAndExec(exepath, args, [], tunnelcfg);
createPipeAndExec(exepath, args, {}, tunnelcfg);
});
});
}
Expand All @@ -824,7 +824,7 @@ function sshClicked() {
nodeid: data["nodeidhex"],
port: 22
};
createPipeAndExec(exepath, args, [], tunnelcfg);
createPipeAndExec(exepath, args, {}, tunnelcfg);
}

function sftpClicked() {
Expand All @@ -840,7 +840,7 @@ function sftpClicked() {
port: 22
};
var args = ['--verbose', 'sftp://' + user + '@127.0.0.1:lport', '-l=ask'];
createPipeAndExec(exepath, args, [], tunnelcfg);
createPipeAndExec(exepath, args, {}, tunnelcfg);
}

function rdpClicked() {
Expand All @@ -856,7 +856,7 @@ function rdpClicked() {
nodeid: data["nodeidhex"],
port: 3389
};
createPipeAndExec(exepath, args, [], tunnelcfg);
createPipeAndExec(exepath, args, {}, tunnelcfg);
}

function cmdClicked() {
Expand All @@ -875,5 +875,5 @@ function cmdClicked() {
nodeid: data["nodeidhex"],
port: cmds[cmd_id].cmdport
};
createPipeAndExec(exepath, args, [], tunnelcfg);
createPipeAndExec(exepath, args, {}, tunnelcfg);
}

0 comments on commit 447dbe7

Please sign in to comment.