mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
fix
This commit is contained in:
@@ -9,6 +9,9 @@ async function connectUtility(driver, storedConnection) {
|
||||
const connection = {
|
||||
...decryptConnection(storedConnection),
|
||||
};
|
||||
|
||||
if (!connection.port && driver.defaultPort) connection.port = driver.defaultPort.toString();
|
||||
|
||||
if (connection.useSshTunnel) {
|
||||
const tunnel = await getSshTunnelProxy(connection);
|
||||
if (tunnel.state == 'error') {
|
||||
@@ -19,8 +22,6 @@ async function connectUtility(driver, storedConnection) {
|
||||
connection.port = tunnel.localPort;
|
||||
}
|
||||
|
||||
if (!connection.port && driver.defaultPort) connection.port = driver.defaultPort.toString();
|
||||
|
||||
// SSL functionality - copied from https://github.com/beekeeper-studio/beekeeper-studio
|
||||
if (connection.useSsl) {
|
||||
connection.ssl = {};
|
||||
|
||||
Reference in New Issue
Block a user