[PATCH] net, dns: socket should handle its output as input
authorAdam Majer <amajer@suse.de>
Mon, 1 Aug 2022 11:16:23 +0000 (13:16 +0200)
committerJérémy Lal <kapouer@melix.org>
Fri, 12 Aug 2022 15:21:50 +0000 (16:21 +0100)
commit25bfbee94d9430b79c8e734daeb9549bd9486975
tree8bc4013b257738355aa240a8810640d974141b9a
parentbc941da67a88ce4296a9853d1ff8b327d101b123
[PATCH] net, dns: socket should handle its output as input

As a consequence of https://github.com/nodejs/node/issues/43014 ,
server sockets and others, once connected, report string family
names. But when feeding these to Socket.connect(), it passes
these to host resolution with a string for family while a numeric
family is expected internally. This results in wrong hints flags
to be set and resolution to fail.

As solution, is to add ability to handle both numeric and string
family names when doing lookup and connect.

Fixes: https://github.com/nodejs/node/issues/44003
Gbp-Pq: Topic build
Gbp-Pq: Name getaddrinfo_no_iface.patch
lib/net.js
test/parallel/parallel.status