Skip to content

Commit

Permalink
fix: ssh tunnel not properly working, closes #220
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Apr 1, 2022
1 parent 77f8cac commit 026d74c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/libs/clients/MySQLClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/libs/clients/PostgreSQLClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 026d74c

Please sign in to comment.