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 <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>
1 parent 4941d47 commit 0777e09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)