1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Use the + mode

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2021-10-29 13:58:01 +03:00
parent 30254400e6
commit 4746e4cf41
No known key found for this signature in database
GPG Key ID: 54B44603D251B788
2 changed files with 5 additions and 2 deletions

View File

@ -70,7 +70,10 @@ describe("inject CA for Windows", () => {
(deps["win-ca"] && os.platform().includes("win32") ? it: it.skip)("should inject the same ca as winca.inject('+')", async () => {
const winCAs = await getWinRootCA();
injectCAs(winCAs);
// @ts-ignore
const wincaAPI = await import("win-ca/api");
wincaAPI.inject("+", winCAs);
const injected = https.globalAgent.options.ca;
const winca = await import("win-ca");

View File

@ -86,7 +86,7 @@ if (isMac) {
if (isWindows) {
getWinRootCA().then((winRootCAs) => {
injectCAs(winRootCAs);
winca.inject("+", winRootCAs);
}).catch((error) => {
console.error(`[WIN-CA]: Error injecting root CAs from Windows. ${error?.message}`);
});