From 0bb84b09a55eb1605b8e231529d10f15aa9ed7f1 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 10 May 2022 11:10:03 +0200 Subject: [PATCH] dns: accept `'IPv4'` and `'IPv6'` for `family` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/43014 PR-URL: https://github.com/nodejs/node/pull/43054 Fixes: https://github.com/nodejs/node/issues/43014 Reviewed-By: Matteo Collina Reviewed-By: Darshan Sen Reviewed-By: Beth Griggs Reviewed-By: Rich Trott Reviewed-By: Michaël Zasso Reviewed-By: Michael Dawson Reviewed-By: Ruben Bridgewater --- doc/api/dgram.md | 5 ++++- doc/api/dns.md | 16 +++++++++++----- doc/api/net.md | 10 ++++++++-- doc/api/os.md | 15 +++++++++------ doc/api/tls.md | 5 ++++- lib/dns.js | 14 ++++++++++++-- lib/net.js | 4 +--- lib/os.js | 4 ++-- src/env.h | 2 ++ src/node_os.cc | 9 ++++----- src/tcp_wrap.cc | 8 ++------ test/common/index.js | 2 +- test/common/udppair.js | 6 +++--- test/es-module/test-http-imports.mjs | 4 ++-- .../test-dgram-broadcast-multi-process.js | 2 +- .../test-dgram-multicast-set-interface-lo.js | 2 +- .../test-dgram-multicast-ssm-multi-process.js | 2 +- .../test-dgram-multicast-ssmv6-multi-process.js | 2 +- test/internet/test-dns-lookup.js | 2 +- test/parallel/parallel.status | 8 ++++++++ test/parallel/test-dgram-address.js | 4 ++-- .../test-dgram-udp6-link-local-address.js | 2 +- test/parallel/test-net-listen-invalid-port.js | 2 +- .../test-net-socket-connect-without-cb.js | 2 +- test/parallel/test-os.js | 4 ++-- test/sequential/test-net-server-address.js | 4 ++-- test/sequential/test-net-server-bind.js | 2 +- 27 files changed, 88 insertions(+), 54 deletions(-) diff --git a/doc/api/dgram.md b/doc/api/dgram.md index f4045428d4ddc7..da3c69ba1681b5 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -114,6 +114,9 @@ exist and calls such as `socket.address()` and `socket.setTTL()` will fail.