mirror of
https://github.com/vale981/autossh
synced 2025-03-05 09:21:40 -05:00
Update Readme.
This commit is contained in:
parent
cb75e24454
commit
d6627821b5
1 changed files with 4 additions and 4 deletions
|
@ -81,7 +81,7 @@ autossh({
|
|||
localPort: 64444,
|
||||
remotePort: 5432
|
||||
})
|
||||
.on('error', err => {
|
||||
.on('error', (err, killed) => {
|
||||
console.error('ERROR: ', err);
|
||||
})
|
||||
.on('connect', connection => {
|
||||
|
@ -100,7 +100,7 @@ const autosshClient = autossh({
|
|||
remotePort: 5432
|
||||
});
|
||||
|
||||
autosshClient.on('error', err => {
|
||||
autosshClient.on('error', (err, killed) => {
|
||||
console.error('ERROR: ', err);
|
||||
autosshClient.kill();
|
||||
});
|
||||
|
@ -247,7 +247,7 @@ autossh({
|
|||
remotePort: 5432,
|
||||
privateKey: '~/.ssh/github_rsa'
|
||||
})
|
||||
.on('error', err => {
|
||||
.on('error', (err, killed) => {
|
||||
console.error('ERROR: ', err);
|
||||
})
|
||||
.on('connect', connection => {
|
||||
|
@ -270,7 +270,7 @@ autossh({
|
|||
remotePort: 5432,
|
||||
reverse: true
|
||||
})
|
||||
.on('error', err => {
|
||||
.on('error', (err, killed) => {
|
||||
console.error('ERROR: ', err);
|
||||
})
|
||||
.on('connect', connection => {
|
||||
|
|
Loading…
Add table
Reference in a new issue