We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4941d47 commit 0777e09Copy full SHA for 0777e09
doc/api/net.md
@@ -618,8 +618,8 @@ For TCP connections, available `options` are:
618
* `host` {string} Host the socket should connect to. **Default:** `'localhost'`.
619
* `localAddress` {string} Local address the socket should connect from.
620
* `localPort` {number} Local port the socket should connect from.
621
-* `family` {number}: Version of IP stack, can be either `4` or `6`.
622
- **Default:** `4`.
+* `family` {number}: Version of IP stack. Must be `4`, `6`, or `0`.
+ **Default:** `0`.
623
* `hints` {number} Optional [`dns.lookup()` hints][].
624
* `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].
625
0 commit comments