Update Readme.

This commit is contained in:
Valentin Boettcher 2018-04-08 07:47:24 +02:00
parent cb75e24454
commit d6627821b5

View file

@ -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 => {