samueleaton / autossh

Persistent SSH tunnels
https://www.npmjs.com/package/autossh
59 stars 16 forks source link

allow reverse: false to override automatic reversal by localHost #13

Open lucbelliveau opened 6 years ago

lucbelliveau commented 6 years ago

Allow reverse: false when localHost is set.

There are use cases where -L port:someOtherHost:port is needed.

This PR adds the ability to override the automatic reversal setting by explicitly declaring reverse: false.

Should be backward compatible as the original behavior is not changed.