Skip to content

Commit eb706c3

Browse files
committed
fix: issue with some SSH connections, definitely
1 parent 971df3a commit eb706c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/libs/clients/MySQLClient.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ export class MySQLClient extends BaseClient {
173173
remotePort: this._params.port
174174
});
175175

176-
// dbConfig.host = this._ssh.config[0].host;
176+
dbConfig.host = undefined;
177177
dbConfig.port = tunnel.localPort;
178178
}
179179
catch (err) {
180180
if (this._ssh) {
181-
this._ssh.close();
182181
this._ssh.closeTunnel();
182+
this._ssh.close();
183183
}
184184
throw err;
185185
}
@@ -227,8 +227,8 @@ export class MySQLClient extends BaseClient {
227227
clearInterval(this._keepaliveTimer);
228228
this._keepaliveTimer = undefined;
229229
if (this._ssh) {
230-
this._ssh.close();
231230
this._ssh.closeTunnel();
231+
this._ssh.close();
232232
}
233233
}
234234

src/main/libs/clients/PostgreSQLClient.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class PostgreSQLClient extends BaseClient {
179179
remotePort: this._params.port
180180
});
181181

182-
// dbConfig.host = this._ssh.config[0].host;
182+
dbConfig.host = undefined;
183183
dbConfig.port = tunnel.localPort;
184184
}
185185
catch (err) {

0 commit comments

Comments
 (0)