Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Fhwang0926 committed Dec 25, 2023
1 parent fb28663 commit 8600df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ module.exports = function appSocket(socket) {
socket.emit('status', 'SSH CONNECTION ESTABLISHED');
socket.emit('statusBackground', 'green');
socket.emit('allowreplay', socket.request.session.ssh.allowreplay);
const { term, cols, rows } = socket.request.session.ssh;
conn.shell({ term, cols, rows }, (err, stream) => {
const { term, terminfo } = socket.request.session.ssh;
conn.shell({ term, cols: terminfo.cols, rows: terminfo.rows }, (err, stream) => {
if (err) {
logError(socket, `EXEC ERROR`, err);
conn.end();
Expand Down

0 comments on commit 8600df9

Please sign in to comment.