aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Connor Peet <connor@peet.io>2017-08-02 09:23:41 -0700
committerGravatar GitHub <noreply@github.com>2017-08-02 09:23:41 -0700
commit3f818ccf0009ebc5d4dd8718c51c28b76cdd8d31 (patch)
treef21a1afb2840b2b3460492b119ad0b8fdec9b689
parentfc22d7af9148d0e043377b11f32c83e098400a6f (diff)
Node: document that root_certs in createSsl is optional
It appears that omitting it causes grpc to use the hosts' default cert data. This was brought up (as I had implemented this method incorrectly) in: https://github.com/mixer/etcd3/issues/28#issuecomment-319510441
-rw-r--r--src/node/src/credentials.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/src/credentials.js b/src/node/src/credentials.js
index dfc1acaf40..d68d888e6a 100644
--- a/src/node/src/credentials.js
+++ b/src/node/src/credentials.js
@@ -82,7 +82,7 @@ var _ = require('lodash');
* @memberof grpc.credentials
* @alias grpc.credentials.createSsl
* @kind function
- * @param {Buffer} root_certs The root certificate data
+ * @param {Buffer=} root_certs The root certificate data
* @param {Buffer=} private_key The client certificate private key, if
* applicable
* @param {Buffer=} cert_chain The client certificate cert chain, if applicable