From 8fa810f33f143402ee503e68900c2a8fc9d7174a Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Thu, 9 Feb 2023 16:26:53 +0100 Subject: [PATCH] net: enable autoSelectFamily by default --- doc/api/cli.md | 8 ++-- doc/api/net.md | 9 ++++- lib/net.js | 2 +- src/node_options.cc | 9 +++-- src/node_options.h | 2 +- ...net-autoselectfamily-commandline-option.js | 38 +++++++------------ ...s => test-net-autoselectfamily-default.js} | 0 7 files changed, 32 insertions(+), 36 deletions(-) rename test/parallel/{test-net-autoselectfamilydefault.js => test-net-autoselectfamily-default.js} (100%) diff --git a/doc/api/cli.md b/doc/api/cli.md index c3544d5880b16f..cb49c8b9265f8d 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -314,14 +314,14 @@ added: v6.0.0 Enable FIPS-compliant crypto at startup. (Requires Node.js to be built against FIPS-compatible OpenSSL.) -### `--enable-network-family-autoselection` +### `--no-network-family-autoselection` -Enables the family autoselection algorithm unless connection options explicitly -disables it. +Disables the family autoselection algorithm unless connection options explicitly +enables it. ### `--enable-source-maps` @@ -1888,7 +1888,6 @@ Node.js options that are allowed are: * `--disable-proto` * `--dns-result-order` * `--enable-fips` -* `--enable-network-family-autoselection` * `--enable-source-maps` * `--experimental-abortcontroller` * `--experimental-import-meta-resolve` @@ -1929,6 +1928,7 @@ Node.js options that are allowed are: * `--no-extra-info-on-fatal-exception` * `--no-force-async-hooks-checks` * `--no-global-search-paths` +* `--no-network-family-autoselection` * `--no-warnings` * `--node-memory-debug` * `--openssl-config` diff --git a/doc/api/net.md b/doc/api/net.md index 4b8a9f123c06eb..51a74891447c62 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -870,6 +870,11 @@ behavior.