fix: use correct ignore ssl env var (#932)

This commit is contained in:
James McCallum
2021-10-29 21:47:16 +10:00
committed by GitHub
parent 95050d0472
commit 51b478a18d
+1 -1
View File
@@ -261,7 +261,7 @@ function normalizeOptions(input?: Partial<NexeOptions>): NexeOptions {
options.downloadOptions.agent = process.env.HTTPS_PROXY
? caw(process.env.HTTPS_PROXY, { protocol: 'https' })
: options.downloadOptions.agent || require('https').globalAgent
options.downloadOptions.rejectUnauthorized = process.env.HTTPS_PROXY ? false : true
options.downloadOptions.rejectUnauthorized = process.env.NODE_TLS_REJECT_UNAUTHORIZED ? false : true
options.rc = options.rc || extractCliMap(/^rc-.*/, options)
options.output =