fix: ssh tunnel not properly working, closes #220

This commit is contained in:
Fabio Di Stasio 2022-04-01 09:51:03 +02:00
parent 77f8cac6cf
commit 026d74c8c8
2 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,8 @@ export class MySQLClient extends AntaresCore {
remoteAddr: this._params.host,
remotePort: this._params.port
});
dbConfig.host = this._ssh.config.host;
dbConfig.port = tunnel.localPort;
}
catch (err) {

View File

@ -96,6 +96,8 @@ export class PostgreSQLClient extends AntaresCore {
remoteAddr: this._params.host,
remotePort: this._params.port
});
dbConfig.host = this._ssh.config.host;
dbConfig.port = tunnel.localPort;
}
catch (err) {