Commit eb706c3 1 parent 971df3a commit eb706c3 Copy full SHA for eb706c3
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,13 +173,13 @@ export class MySQLClient extends BaseClient {
173
173
remotePort : this . _params . port
174
174
} ) ;
175
175
176
- // dbConfig.host = this._ssh.config[0].host ;
176
+ dbConfig . host = undefined ;
177
177
dbConfig . port = tunnel . localPort ;
178
178
}
179
179
catch ( err ) {
180
180
if ( this . _ssh ) {
181
- this . _ssh . close ( ) ;
182
181
this . _ssh . closeTunnel ( ) ;
182
+ this . _ssh . close ( ) ;
183
183
}
184
184
throw err ;
185
185
}
@@ -227,8 +227,8 @@ export class MySQLClient extends BaseClient {
227
227
clearInterval ( this . _keepaliveTimer ) ;
228
228
this . _keepaliveTimer = undefined ;
229
229
if ( this . _ssh ) {
230
- this . _ssh . close ( ) ;
231
230
this . _ssh . closeTunnel ( ) ;
231
+ this . _ssh . close ( ) ;
232
232
}
233
233
}
234
234
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ export class PostgreSQLClient extends BaseClient {
179
179
remotePort : this . _params . port
180
180
} ) ;
181
181
182
- // dbConfig.host = this._ssh.config[0].host ;
182
+ dbConfig . host = undefined ;
183
183
dbConfig . port = tunnel . localPort ;
184
184
}
185
185
catch ( err ) {
You can’t perform that action at this time.
0 commit comments