summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKirill Fomichev <fanatid@ya.ru>2019-07-03 15:43:19 +0300
committerMichaƫl Zasso <targos@protonmail.com>2019-07-20 11:05:18 +0200
commit0777e090b4128b582abdee26a3baa70b49a32995 (patch)
treefeebc1b149c4eeb86068a508611d4d7c706e7fcd /doc
parent4941d47212401c697604f0ac12e7862a569a9533 (diff)
downloadandroid-node-v8-0777e090b4128b582abdee26a3baa70b49a32995.tar.gz
android-node-v8-0777e090b4128b582abdee26a3baa70b49a32995.tar.bz2
android-node-v8-0777e090b4128b582abdee26a3baa70b49a32995.zip
doc: fix family default value in socket.connect
PR-URL: https://github.com/nodejs/node/pull/28521 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/net.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/net.md b/doc/api/net.md
index d65637e315..a12ac4ad3c 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()`][].