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