diff --git a/ChangeLog.md b/ChangeLog.md index afd53cd..6f28ffd 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,8 +1,8 @@ # Change Log -## [0.1.4] 2017-11-09 +## [0.1.4] 2018-01-30 ### Changed - Moved socket and util out of folders into .js in root. - +- added keepaliveInterval and keepaliveCountMax config options ## [0.1.3] 2017-09-28 ### Changed diff --git a/README.md b/README.md index 901d34f..c5f85f5 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ docker run --name webssh2 -d -p 2222:2222 webssh2 * **ssh.readyTimeout** - _integer_ - How long (in milliseconds) to wait for the SSH handshake to complete. **Default:** 20000. +* **ssh.keepaliveInterval** - _integer_ - How often (in milliseconds) to send SSH-level keepalive packets to the server (in a similar way as OpenSSH's ServerAliveInterval config option). Set to 0 to disable. **Default:** 120000. + +* **ssh.keepaliveCountMax** - _integer_ - How many consecutive, unanswered SSH-level keepalive packets that can be sent to the server before disconnection (similar to OpenSSH's ServerAliveCountMax config option). **Default:** 10. + * **useminified** - _boolean_ - Choose between ./public/client-full.htm (false/non-minified) or ./public/client-min.htm (true/minified js), defaults to false (non-minified version) * **header.text** - _string_ - Specify header text, defaults to `My Header` but may also be set to `null`. When set to `null` no header bar will be displayed on the client. diff --git a/bin/BIG-IP-ILX-ephemeral_auth-current.tgz b/bin/BIG-IP-ILX-ephemeral_auth-current.tgz index 6b0f79a..76c7a3c 100644 Binary files a/bin/BIG-IP-ILX-ephemeral_auth-current.tgz and b/bin/BIG-IP-ILX-ephemeral_auth-current.tgz differ diff --git a/package.json b/package.json index 26bcf55..2e1e2f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webssh2", - "version": "0.1.3", + "version": "0.1.4", "ignore": [ ".gitignore" ], diff --git a/socket.js b/socket.js index da54fcd..17cc75e 100644 --- a/socket.js +++ b/socket.js @@ -112,6 +112,8 @@ module.exports = function socket (socket) { tryKeyboard: true, algorithms: socket.request.session.ssh.algorithms, readyTimeout: socket.request.session.ssh.readyTimeout, + keepaliveInterval: socket.request.session.ssh.keepaliveInterval, + keepaliveCountMax: socket.request.session.ssh.keepaliveCountMax, debug: debug('ssh2') }) } else {