Skip to content

Commit 0777e09

Browse files
fanatidtargos
authored andcommitted
doc: fix family default value in socket.connect
PR-URL: #28521 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 4941d47 commit 0777e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/net.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ For TCP connections, available `options` are:
618618
* `host` {string} Host the socket should connect to. **Default:** `'localhost'`.
619619
* `localAddress` {string} Local address the socket should connect from.
620620
* `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`.
621+
* `family` {number}: Version of IP stack. Must be `4`, `6`, or `0`.
622+
**Default:** `0`.
623623
* `hints` {number} Optional [`dns.lookup()` hints][].
624624
* `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].
625625

0 commit comments

Comments
 (0)