From 6f1caadb85f70bb902c078d9b7a96e3c4b36b31f Mon Sep 17 00:00:00 2001 From: Bryan English Date: Mon, 31 Jul 2017 23:58:39 -0700 Subject: tls: prefer path over port in connect Makes tls.connect() behave as documented, preferring options.path over options.port. This makes it consistent with net.connect(), so the included test demonstrates that both behave in this way. Also, for consistency, noting the precedence of options.path in net doc. PR-URL: https://github.com/nodejs/node/pull/14564 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- doc/api/net.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/api/net.md') diff --git a/doc/api/net.md b/doc/api/net.md index 2c5a05e2dc..4ed0dbda6c 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -591,7 +591,8 @@ For TCP connections, available `options` are: For [IPC][] connections, available `options` are: * `path` {string} Required. Path the client should connect to. - See [Identifying paths for IPC connections][]. + See [Identifying paths for IPC connections][]. If provided, the TCP-specific + options above are ignored. Returns `socket`. -- cgit v1.2.3