From c5eb19954660534bf2326b067130a062f603703b Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Thu, 17 Oct 2024 15:40:26 +0300 Subject: [PATCH] [bug] Change win-ca inject mode to experimental; For bug 70962 --- Common/config/default.json | 3 +++ Common/sources/utils.js | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Common/config/default.json b/Common/config/default.json index 4c04dc00..06ac3c0d 100644 --- a/Common/config/default.json +++ b/Common/config/default.json @@ -161,6 +161,9 @@ "getChanges": { } }, + "win-ca": { + "inject": "+" + }, "wopi": { "enable": false, "host" : "", diff --git a/Common/sources/utils.js b/Common/sources/utils.js index 8a21e160..d6c60737 100644 --- a/Common/sources/utils.js +++ b/Common/sources/utils.js @@ -58,10 +58,6 @@ const https = require('https'); const ca = require('win-ca/api'); const util = require('util'); -if(!ca.disabled) { - ca({inject: true}); -} - const contentDisposition = require('content-disposition'); const operationContext = require("./operationContext"); @@ -86,6 +82,9 @@ const cfgRequesFilteringAgent = config.get('services.CoAuthoring.request-filteri const cfgStorageExternalHost = config.get('storage.externalHost'); const cfgExternalRequestDirectIfIn = config.get('externalRequest.directIfIn'); const cfgExternalRequestAction = config.get('externalRequest.action'); +const cfgWinCa = config.get('win-ca'); + +ca(cfgWinCa); const minimumIterationsByteLength = 4; const dnscache = getDnsCache(cfgDnsCache);