mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-10 16:50:42 +01:00
fix: ssh tunnel not properly working, closes #220
This commit is contained in:
parent
77f8cac6cf
commit
026d74c8c8
@ -151,6 +151,8 @@ export class MySQLClient extends AntaresCore {
|
|||||||
remoteAddr: this._params.host,
|
remoteAddr: this._params.host,
|
||||||
remotePort: this._params.port
|
remotePort: this._params.port
|
||||||
});
|
});
|
||||||
|
|
||||||
|
dbConfig.host = this._ssh.config.host;
|
||||||
dbConfig.port = tunnel.localPort;
|
dbConfig.port = tunnel.localPort;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
|
@ -96,6 +96,8 @@ export class PostgreSQLClient extends AntaresCore {
|
|||||||
remoteAddr: this._params.host,
|
remoteAddr: this._params.host,
|
||||||
remotePort: this._params.port
|
remotePort: this._params.port
|
||||||
});
|
});
|
||||||
|
|
||||||
|
dbConfig.host = this._ssh.config.host;
|
||||||
dbConfig.port = tunnel.localPort;
|
dbConfig.port = tunnel.localPort;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user