Updates
This commit is contained in:
+7
-2
@@ -10,8 +10,13 @@ const grab_dir_names_1 = __importDefault(require("./names/grab-dir-names"));
|
||||
* # Grab SSL
|
||||
*/
|
||||
function grabDbSSL() {
|
||||
const { maxscaleSSLCaCertFile } = (0, grab_dir_names_1.default)();
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFile;
|
||||
let maxscaleSSLCaCertFileFinal;
|
||||
try {
|
||||
const { maxscaleSSLCaCertFile } = (0, grab_dir_names_1.default)();
|
||||
maxscaleSSLCaCertFileFinal = maxscaleSSLCaCertFile;
|
||||
}
|
||||
catch (error) { }
|
||||
const caFilePath = process.env.DSQL_SSL_CA_CERT || maxscaleSSLCaCertFileFinal;
|
||||
if (!(caFilePath === null || caFilePath === void 0 ? void 0 : caFilePath.match(/./))) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user