From 0777e090b4128b582abdee26a3baa70b49a32995 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Wed, 3 Jul 2019 15:43:19 +0300 Subject: [PATCH] doc: fix family default value in socket.connect PR-URL: https://github.com/nodejs/node/pull/28521 Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- doc/api/net.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index d65637e31568a8..a12ac4ad3cc258 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -618,8 +618,8 @@ For TCP connections, available `options` are: * `host` {string} Host the socket should connect to. **Default:** `'localhost'`. * `localAddress` {string} Local address the socket should connect from. * `localPort` {number} Local port the socket should connect from. -* `family` {number}: Version of IP stack, can be either `4` or `6`. - **Default:** `4`. +* `family` {number}: Version of IP stack. Must be `4`, `6`, or `0`. + **Default:** `0`. * `hints` {number} Optional [`dns.lookup()` hints][]. * `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].