From 8eae0d3f3c7be03f60c87c6cb845971fa3109c42 Mon Sep 17 00:00:00 2001 From: Ihor Rohovets <36768221+freego555@users.noreply.github.com> Date: Sat, 5 Oct 2024 05:06:36 +0300 Subject: [PATCH] doc: fix initial default value of autoSelectFamily Specify the initial default value of `autoSelectFamily` in description of `net.setDefaultAutoSelectFamily()` as specified in description of `net.getDefaultAutoSelectFamily()`. PR-URL: https://github.com/nodejs/node/pull/55245 Reviewed-By: Luigi Pinca Reviewed-By: Paolo Insogna Reviewed-By: Jake Yuesong Li --- doc/api/net.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index 536c9d9d92e248..83de5d5afc1fcf 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1798,7 +1798,9 @@ added: v19.4.0 Sets the default value of the `autoSelectFamily` option of [`socket.connect(options)`][]. -* `value` {boolean} The new default value. The initial default value is `false`. +* `value` {boolean} The new default value. + The initial default value is `true`, unless the command line option + `--no-network-family-autoselection` is provided. ## `net.getDefaultAutoSelectFamilyAttemptTimeout()`