Skip to content

Commit cbe54db

Browse files
committed
Adds the ability to specify for tunnel-ssh config
1 parent aedf446 commit cbe54db

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ The port to forward from the server
8080

8181
*Default:* `6379`
8282

83+
### dstHost
84+
85+
The host to forward to on the destination server.
86+
87+
*Default:* `localhost`
88+
8389
### srcPort
8490

8591
The local port for the forwarding

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
name: options.name,
2020
defaultConfig: {
2121
dstPort: 6379,
22+
dstHost: 'localhost',
2223
srcPort: function() {
2324
var range = MAX_PORT_NUMBER - MIN_PORT_NUMBER + 1;
2425
return Math.floor(Math.random() * range) + MIN_PORT_NUMBER;
@@ -42,6 +43,7 @@ module.exports = {
4243
var sshConfig = {
4344
host: this.readConfig('host'),
4445
dstPort: this.readConfig('dstPort'),
46+
dstHost: this.readConfig('dstHost'),
4547
username: this.readConfig('username'),
4648
localPort: srcPort,
4749
privateKey: this.readConfig('privateKeyPath')

0 commit comments

Comments
 (0)