From 10e0d7f2acf1f82bde7d909d9d8979e2040f30e2 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 22 May 2019 10:27:16 +0200 Subject: [PATCH] tls: support the hints option Make `tls.connect()` support the `hints` option for feature parity with `net.connect()`. PR-URL: https://github.com/nodejs/node/pull/27816 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Yongsheng Zhang Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Sam Roberts Reviewed-By: Rich Trott --- doc/api/tls.md | 12 ++++----- lib/_tls_wrap.js | 14 ++-------- .../parallel/test-tls-connect-hints-option.js | 26 +++++++++++++++++++ 3 files changed, 33 insertions(+), 19 deletions(-) create mode 100644 test/parallel/test-tls-connect-hints-option.js diff --git a/doc/api/tls.md b/doc/api/tls.md index 4e0122f11f11d1..ae5285cb0d387d 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1178,6 +1178,9 @@ being issued by trusted CA (`options.ca`).