This commit is contained in:
parent
ca20321625
commit
65d6ec6845
2 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,8 @@ app.get('/ssh/host/:host?', function (req, res, next) {
|
|||
req.params.host) || config.ssh.host,
|
||||
port: (validator.isInt(req.query.port + '', { min: 1, max: 65535 }) &&
|
||||
req.query.port) || config.ssh.port,
|
||||
localAddress: config.ssh.localAddress,
|
||||
localPort: config.ssh.localPort,
|
||||
header: {
|
||||
name: req.query.header || config.header.text,
|
||||
background: req.query.headerBackground || config.header.background
|
||||
|
|
|
@ -119,6 +119,8 @@ module.exports = function socket (socket) {
|
|||
conn.connect({
|
||||
host: socket.request.session.ssh.host,
|
||||
port: socket.request.session.ssh.port,
|
||||
localAddress: socket.request.session.ssh.localAddress,
|
||||
localPort: socket.request.session.ssh.localPort,
|
||||
username: socket.request.session.username,
|
||||
password: socket.request.session.userpassword,
|
||||
tryKeyboard: true,
|
||||
|
|
Loading…
Reference in a new issue