File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 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 {
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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments