feat: support NODE_EXTRA_CA_CERTS
(#41822)
* feat: support NODE_EXTRA_CA_CERTS Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * chore: allow disabling NODE_EXTRA_CA_CERTS Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * chore: call base::Environment::UnSetVar Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * docs: link to fuses from env vars Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * chore: update patch to match upstream Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * docs: note enabled by default Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> * Update environment-variables.md Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
cf1087badd
commit
c37c7fd3c4
7 changed files with 57 additions and 9 deletions
|
@ -127,6 +127,7 @@ int NodeMain(int argc, char* argv[]) {
|
|||
bool node_options_enabled = electron::fuses::IsNodeOptionsEnabled();
|
||||
if (!node_options_enabled) {
|
||||
os_env->UnSetVar("NODE_OPTIONS");
|
||||
os_env->UnSetVar("NODE_EXTRA_CA_CERTS");
|
||||
}
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue