From 27564b78110de5b82384aa20fac2f63f20326174 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 aa75bf270f4277..1122c9c1efe53c 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1779,7 +1779,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()`