mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Distribute roots.pem with the Node package
This commit is contained in:
parent
c00bf4f6bc
commit
c0d31d554a
8
index.js
8
index.js
@ -33,6 +33,14 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
|
||||
var SSL_ROOTS_PATH = path.resolve(__dirname, '..', '..', 'etc', 'roots.pem');
|
||||
|
||||
if (!process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH) {
|
||||
process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH = SSL_ROOTS_PATH;
|
||||
}
|
||||
|
||||
var _ = require('lodash');
|
||||
|
||||
var ProtoBuf = require('protobufjs');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user