don't re-add if array is tagged with __injected

This commit is contained in:
AJ ONeal 2014-03-07 19:13:15 -07:00
parent 2990ddc1c3
commit d4ee490253
1 changed files with 3 additions and 1 deletions

View File

@ -4096,4 +4096,6 @@ var cas = module.exports = [
];
module.exports.inject = function () {
var opts = require('https').globalAgent.options;
if (!opts.ca || opts.ca.length < 100) { opts.ca = (opts.ca||[]).concat(cas); }};
if (!opts.ca || !opts.ca.__injected) { opts.ca = (opts.ca||[]).concat(cas); }
opts.ca.__injected = true;
};