mirror of
https://github.com/Fabio286/antares.git
synced 2025-04-13 17:52:04 +02:00
fix: issue with some SSH connections, definitely
This commit is contained in:
parent
971df3a989
commit
eb706c3e51
@ -173,13 +173,13 @@ export class MySQLClient extends BaseClient {
|
|||||||
remotePort: this._params.port
|
remotePort: this._params.port
|
||||||
});
|
});
|
||||||
|
|
||||||
// dbConfig.host = this._ssh.config[0].host;
|
dbConfig.host = undefined;
|
||||||
dbConfig.port = tunnel.localPort;
|
dbConfig.port = tunnel.localPort;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
if (this._ssh) {
|
if (this._ssh) {
|
||||||
this._ssh.close();
|
|
||||||
this._ssh.closeTunnel();
|
this._ssh.closeTunnel();
|
||||||
|
this._ssh.close();
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
@ -227,8 +227,8 @@ export class MySQLClient extends BaseClient {
|
|||||||
clearInterval(this._keepaliveTimer);
|
clearInterval(this._keepaliveTimer);
|
||||||
this._keepaliveTimer = undefined;
|
this._keepaliveTimer = undefined;
|
||||||
if (this._ssh) {
|
if (this._ssh) {
|
||||||
this._ssh.close();
|
|
||||||
this._ssh.closeTunnel();
|
this._ssh.closeTunnel();
|
||||||
|
this._ssh.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ export class PostgreSQLClient extends BaseClient {
|
|||||||
remotePort: this._params.port
|
remotePort: this._params.port
|
||||||
});
|
});
|
||||||
|
|
||||||
// dbConfig.host = this._ssh.config[0].host;
|
dbConfig.host = undefined;
|
||||||
dbConfig.port = tunnel.localPort;
|
dbConfig.port = tunnel.localPort;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user