mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fixed potential error
This commit is contained in:
@@ -66,7 +66,7 @@ async function tediousConnect(storedConnection) {
|
||||
const authentication = await getAuthentication(storedConnection);
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const [host, instance] = server.split('\\');
|
||||
const [host, instance] = (server || '').split('\\');
|
||||
const connectionOptions = {
|
||||
instanceName: instance,
|
||||
encrypt: !!ssl || authType == 'msentra' || authType == 'azureManagedIdentity',
|
||||
|
||||
Reference in New Issue
Block a user