summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-07-06 09:39:36 -0400
committerMichaƫl Zasso <targos@protonmail.com>2019-07-20 11:05:22 +0200
commit643d09961baaa034056e2e4db2450dbbba48c9cb (patch)
tree15ee732d2ab84c1fff0ef0c667b84b1502834af4 /doc
parenta24ab56dc5119d456f7fe354a6ad558f304b64e2 (diff)
downloadandroid-node-v8-643d09961baaa034056e2e4db2450dbbba48c9cb.tar.gz
android-node-v8-643d09961baaa034056e2e4db2450dbbba48c9cb.tar.bz2
android-node-v8-643d09961baaa034056e2e4db2450dbbba48c9cb.zip
doc: document family:0 behavior in socket.connect
Now that family:0 is documented in socket.connect(), add an explanation of what it means since 0 is not an IP family. PR-URL: https://github.com/nodejs/node/pull/28574 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> 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 a12ac4ad3c..f1134c0492 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. Must be `4`, `6`, or `0`.
- **Default:** `0`.
+* `family` {number}: Version of IP stack. Must be `4`, `6`, or `0`. The value
+ `0` indicates that both IPv4 and IPv6 addresses are allowed. **Default:** `0`.
* `hints` {number} Optional [`dns.lookup()` hints][].
* `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].