Skip to content

Commit

Permalink
fix: inactivity timeout option not works at macOS Catalina
Browse files Browse the repository at this point in the history
heartbeat messages existence is logged to debug3
  • Loading branch information
CatWithApple committed Mar 3, 2020
1 parent 020d1a7 commit b70e02a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var Tunnel = inherit(EventEmitter, {
* @param {boolean} [opts.strictHostKeyChecking=true] verify host authenticity
* @param {string} [opts.identity] private key for public key authentication
* @param {boolean} [opts.compression] use compression
* @param {number} [opts.inactivityTimeout] inactivity timeout (including keep-alive pings)
* @param {number} [opts.inactivityTimeout] inactivity timeout (including keep-alive pings, may degrade performance)
*/
__constructor: function (opts) {
EventEmitter.call(this);
Expand Down Expand Up @@ -165,7 +165,8 @@ var Tunnel = inherit(EventEmitter, {
return [
util.format('-R %d:localhost:%d', this.port, this._localPort),
'-N',
'-v',
// heartbeat messages existence is logged to debug3 (penSSH_7.9p1, LibreSSL 2.7.3, macOC Catalina)
this._activityWatcher ? '-vvv' : '-v',
this._strictHostKeyChecking === false ? '-o StrictHostKeyChecking=no' : '',
this._compression !== undefined ?
util.format('-o Compression=%s', this._compression ? 'yes' : 'no')
Expand Down

0 comments on commit b70e02a

Please sign in to comment.