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:
parent
30254400e6
commit
4746e4cf41
@ -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 () => {
|
(deps["win-ca"] && os.platform().includes("win32") ? it: it.skip)("should inject the same ca as winca.inject('+')", async () => {
|
||||||
const winCAs = await getWinRootCA();
|
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 injected = https.globalAgent.options.ca;
|
||||||
|
|
||||||
const winca = await import("win-ca");
|
const winca = await import("win-ca");
|
||||||
|
|||||||
@ -86,7 +86,7 @@ if (isMac) {
|
|||||||
|
|
||||||
if (isWindows) {
|
if (isWindows) {
|
||||||
getWinRootCA().then((winRootCAs) => {
|
getWinRootCA().then((winRootCAs) => {
|
||||||
injectCAs(winRootCAs);
|
winca.inject("+", winRootCAs);
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(`[WIN-CA]: Error injecting root CAs from Windows. ${error?.message}`);
|
console.error(`[WIN-CA]: Error injecting root CAs from Windows. ${error?.message}`);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user