From 857826bc61c098e6c0f6a21d606c7a75163dae52 Mon Sep 17 00:00:00 2001 From: Laura Davis Date: Fri, 7 Aug 2020 10:48:37 -0400 Subject: [PATCH] added controls variable in starttls example --- docs/client.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/client.md b/docs/client.md index 3aee7555..ce585b24 100644 --- a/docs/client.md +++ b/docs/client.md @@ -386,7 +386,9 @@ Example: ca: [fs.readFileSync('mycacert.pem')] }; - client.starttls(opts, function(err, res) { + var controls = client.controls; + + client.starttls(opts, controls, function(err, res) { assert.ifError(err); // Client communication now TLS protected